Mercurial > libavformat.hg
changeset 606:ef6d04c1dd9a libavformat
use pts based duration/bitrate guessing code for mpeg-ts
author | michael |
---|---|
date | Mon, 06 Dec 2004 00:15:52 +0000 |
parents | deece487318e |
children | fce9fc3a0f17 |
files | utils.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/utils.c Mon Dec 06 00:08:37 2004 +0000 +++ b/utils.c Mon Dec 06 00:15:52 2004 +0000 @@ -1617,7 +1617,7 @@ } ic->file_size = file_size; - if (ic->iformat == &mpegps_demux && file_size && !ic->pb.is_streamed) { + if ((ic->iformat == &mpegps_demux || ic->iformat == &mpegts_demux) && file_size && !ic->pb.is_streamed) { /* get accurate estimate from the PTSes */ av_estimate_timings_from_pts(ic); } else if (av_has_timings(ic)) {