[FFmpeg-cvslog] flvdec: skip duplicate indexes

Michael Niedermayer git at videolan.org
Tue Nov 8 00:26:49 CET 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Nov  8 00:09:44 2011 +0100| [4717e2979694bd3679d1a5c5aad1e95b9c431b29] | committer: Michael Niedermayer

flvdec: skip duplicate indexes

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4717e2979694bd3679d1a5c5aad1e95b9c431b29
---

 libavformat/flvdec.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c
index d48d367..e2f7f9c 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;



More information about the ffmpeg-cvslog mailing list