Browse code

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

fixes Issue 2674

Justin Ruggles authored on 2011/04/04 04:15:36
Showing 1 changed files
... ...
@@ -211,7 +211,7 @@ static int amf_parse_object(AVFormatContext *s, AVStream *astream, AVStream *vst
211 211
         case AMF_DATA_TYPE_OBJECT: {
212 212
             unsigned int keylen;
213 213
 
214
-            if (!strcmp(KEYFRAMES_TAG, key) && depth == 1)
214
+            if (key && !strcmp(KEYFRAMES_TAG, key) && depth == 1)
215 215
                 if (parse_keyframes_index(s, ioc, vstream, max_pos) < 0)
216 216
                     return -1;
217 217