You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
flvdec: fix segfault in amf_parse_object() due to NULL key
fixes Issue 2674 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
committed by
Michael Niedermayer
parent
100a6b7c77
commit
deff8a6d3a
@@ -202,7 +202,7 @@ static int amf_parse_object(AVFormatContext *s, AVStream *astream, AVStream *vst
|
|||||||
case AMF_DATA_TYPE_OBJECT: {
|
case AMF_DATA_TYPE_OBJECT: {
|
||||||
unsigned int keylen;
|
unsigned int keylen;
|
||||||
|
|
||||||
if (!strcmp(KEYFRAMES_TAG, key) && depth == 1)
|
if (key && !strcmp(KEYFRAMES_TAG, key) && depth == 1)
|
||||||
if (parse_keyframes_index(s, ioc, vstream, max_pos) < 0)
|
if (parse_keyframes_index(s, ioc, vstream, max_pos) < 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user