Browse Source

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

fixes Issue 2674
tags/n0.8
Justin Ruggles 14 years ago
parent
commit
e3c007bb43
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/flvdec.c

+ 1
- 1
libavformat/flvdec.c View File

@@ -211,7 +211,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;



Loading…
Cancel
Save