[FFmpeg-cvslog] r11527 - trunk/libavformat/mpeg.c

mbardiaux subversion
Mon Jan 14 17:11:08 CET 2008


Author: mbardiaux
Date: Mon Jan 14 17:11:08 2008
New Revision: 11527

Log:
Suppress runaway index on streamed input

Modified:
   trunk/libavformat/mpeg.c

Modified: trunk/libavformat/mpeg.c
==============================================================================
--- trunk/libavformat/mpeg.c	(original)
+++ trunk/libavformat/mpeg.c	Mon Jan 14 17:11:08 2008
@@ -385,7 +385,8 @@ static int mpegps_read_pes_header(AVForm
     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? */);
             }




More information about the ffmpeg-cvslog mailing list