diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c index ef26b05b3b..f27b70c0c6 100644 --- a/libavformat/flvdec.c +++ b/libavformat/flvdec.c @@ -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;