# HG changeset patch # User michael # Date 1187400366 0 # Node ID c356a88cedf60bf9c710eb207c49d836333a1462 # Parent fcaecfb0578120fc67c9dd851d24f2cc1ded5737 Do not butcher start_time in av_estimate_timings_from_bit_rate(). from a patch by neilb suse de diff -r fcaecfb05781 -r c356a88cedf6 utils.c --- 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; - } } } }