aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2011-10-19 18:41:02 +0200
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2011-11-08 19:03:54 +0100
commit661e0811760844fd03d2f5cfe74c5736bb4b8ecc (patch)
tree28ab53e4aecbf5d63a074a5f699ae31f1aa6d701
parent9f70057dd6d1737dd363017027c3b35512c23c27 (diff)
downloadffmpeg-661e0811760844fd03d2f5cfe74c5736bb4b8ecc.tar.gz
Do not call parse_keyframes_index with NULL stream.
Seems to fix trac issue #569. Sample is unfortunately not available, but it might be caused by an index existing for non-existing audio stream (?). Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de> (cherry picked from commit 6ea6ff053af2aff8a9a898292f9640efa9290c9f)
-rw-r--r--libavformat/flvdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c
index 54f42cd8f1..e52d4b10f6 100644
--- a/libavformat/flvdec.c
+++ b/libavformat/flvdec.c
@@ -212,7 +212,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");