summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavformat/flvdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c
index a2a3c5c493..c48224b445 100644
--- a/libavformat/flvdec.c
+++ b/libavformat/flvdec.c
@@ -210,7 +210,7 @@ static int amf_parse_object(AVFormatContext *s, AVStream *astream, AVStream *vst
case AMF_DATA_TYPE_OBJECT: {
unsigned int keylen;
- if (ioc->seekable && key && !strcmp(KEYFRAMES_TAG, key) && depth == 1)
+ if (vstream && ioc->seekable && key && !strcmp(KEYFRAMES_TAG, key) && depth == 1)
if (parse_keyframes_index(s, ioc, vstream, max_pos) < 0)
av_log(s, AV_LOG_ERROR, "Keyframe index parsing failed\n");