diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-11-08 00:09:44 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-11-08 00:09:44 +0100 |
commit | 4717e2979694bd3679d1a5c5aad1e95b9c431b29 (patch) | |
tree | 1a95d99c6e2fca38eadd2cb4ef755a8beddec3e7 /libavformat | |
parent | c3d56f0ea35fc76799b3accb64503baceee05188 (diff) | |
download | ffmpeg-4717e2979694bd3679d1a5c5aad1e95b9c431b29.tar.gz |
flvdec: skip duplicate indexes
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/flvdec.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c index d48d367500..e2f7f9c16d 100644 --- a/libavformat/flvdec.c +++ b/libavformat/flvdec.c @@ -152,6 +152,11 @@ static int parse_keyframes_index(AVFormatContext *s, AVIOContext *ioc, AVStream return 0; } + if(vstream->nb_index_entries>0){ + av_log(s, AV_LOG_WARNING, "Skiping duplicate index\n"); + return 0; + } + while (avio_tell(ioc) < max_pos - 2 && amf_get_string(ioc, str_val, sizeof(str_val)) > 0) { int64_t** current_array; unsigned int arraylen; |