[SCM] libav/experimental: Suppress runaway index on streamed input

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:11:48 UTC 2013


The following commit has been merged in the experimental branch:
commit 6ba90c204c4921ba72602d734bb17111851baaed
Author: Michel Bardiaux <mbardiaux at mediaxim.be>
Date:   Mon Jan 14 16:11:08 2008 +0000

    Suppress runaway index on streamed input
    
    Originally committed as revision 11527 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavformat/mpeg.c b/libavformat/mpeg.c
index aca9db2..97b2a63 100644
--- a/libavformat/mpeg.c
+++ b/libavformat/mpeg.c
@@ -385,7 +385,8 @@ static int mpegps_read_pes_header(AVFormatContext *s,
     if(dts != AV_NOPTS_VALUE && ppos){
         int i;
         for(i=0; i<s->nb_streams; i++){
-            if(startcode == s->streams[i]->id) {
+            if(startcode == s->streams[i]->id &&
+               !url_is_streamed(s->pb) /* index useless on streams anyway */) {
                 ff_reduce_index(s, i);
                 av_add_index_entry(s->streams[i], *ppos, dts, 0, 0, AVINDEX_KEYFRAME /* FIXME keyframe? */);
             }

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list