summaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2007-08-18 01:26:06 +0000
committerMichael Niedermayer <michaelni@gmx.at>2007-08-18 01:26:06 +0000
commit9f32041d8913a5b720a06de7864fa481d1000b03 (patch)
tree5424b8098342709963d1a6ab02cff466cc5963c3 /libavformat
parentd6a0906ad12024096352fa02b45cf0411356ce41 (diff)
downloadffmpeg-streaming-9f32041d8913a5b720a06de7864fa481d1000b03.zip
ffmpeg-streaming-9f32041d8913a5b720a06de7864fa481d1000b03.tar.gz
Do not butcher start_time in av_estimate_timings_from_bit_rate().
from a patch by neilb suse de Originally committed as revision 10140 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/utils.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c
index 6583ec8..e71cb5a 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -1460,11 +1460,8 @@ static void av_estimate_timings_from_bit_rate(AVFormatContext *ic)
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;
- }
}
}
}
OpenPOWER on IntegriCloud