Commit deff8a6d authored by Justin Ruggles's avatar Justin Ruggles Committed by Michael Niedermayer

flvdec: fix segfault in amf_parse_object() due to NULL key

fixes Issue 2674
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 100a6b7c
......@@ -202,7 +202,7 @@ static int amf_parse_object(AVFormatContext *s, AVStream *astream, AVStream *vst
case AMF_DATA_TYPE_OBJECT: {
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)
return -1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment