diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-04-09 00:03:01 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-04-09 03:23:49 +0200 |
commit | c0577ceb5569a5f02a9a405f9d8bc9b3ba66fad4 (patch) | |
tree | ba587a32f07f483eb0b8c963b46a16ddad01885b /libavformat | |
parent | ba667e600ffedad9d34caabe13f775b411f33a27 (diff) | |
download | ffmpeg-c0577ceb5569a5f02a9a405f9d8bc9b3ba66fad4.tar.gz |
flv: Only parse keyframe index when the underlaying protocol allows seeking as we need to seek to read the index
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/flvdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c index 104fc4288d..d06cfcc8d5 100644 --- a/libavformat/flvdec.c +++ b/libavformat/flvdec.c @@ -203,7 +203,7 @@ static int amf_parse_object(AVFormatContext *s, AVStream *astream, AVStream *vst case AMF_DATA_TYPE_OBJECT: { unsigned int keylen; - if (key && !strcmp(KEYFRAMES_TAG, key) && depth == 1) + if (ioc->seekable && key && !strcmp(KEYFRAMES_TAG, key) && depth == 1) if (parse_keyframes_index(s, ioc, vstream, max_pos) < 0) return -1; |