[FFmpeg-cvslog] r10140 - trunk/libavformat/utils.c

michael subversion
Sat Aug 18 03:26:06 CEST 2007


Author: michael
Date: Sat Aug 18 03:26:06 2007
New Revision: 10140

Log:
dont butcher start_time in av_estimate_timings_from_bit_rate()
from a patch by neilb suse de


Modified:
   trunk/libavformat/utils.c

Modified: trunk/libavformat/utils.c
==============================================================================
--- trunk/libavformat/utils.c	(original)
+++ trunk/libavformat/utils.c	Sat Aug 18 03:26:06 2007
@@ -1460,11 +1460,8 @@ static void av_estimate_timings_from_bit
             for(i = 0; i < ic->nb_streams; i++) {
                 st = ic->streams[i];
                 duration= av_rescale(8*filesize, st->time_base.den, ic->bit_rate*(int64_t)st->time_base.num);
-                if (st->start_time == AV_NOPTS_VALUE ||
-                    st->duration == AV_NOPTS_VALUE) {
-                    st->start_time = 0;
+                if (st->duration == AV_NOPTS_VALUE)
                     st->duration = duration;
-                }
             }
         }
     }




More information about the ffmpeg-cvslog mailing list