changeset 2401:c356a88cedf6 libavformat

Do not butcher start_time in av_estimate_timings_from_bit_rate(). from a patch by neilb suse de
author michael
date Sat, 18 Aug 2007 01:26:06 +0000
parents fcaecfb05781
children 8decf7585a94
files utils.c
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/utils.c	Sat Aug 18 00:52:05 2007 +0000
+++ b/utils.c	Sat Aug 18 01:26:06 2007 +0000
@@ -1460,11 +1460,8 @@
             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;
-                }
             }
         }
     }