# HG changeset patch # User michael # Date 1102292152 0 # Node ID ef6d04c1dd9a113f34571a2c06059901acb77927 # Parent deece487318ed54bac60a2657de4baecb263e6b8 use pts based duration/bitrate guessing code for mpeg-ts diff -r deece487318e -r ef6d04c1dd9a utils.c --- 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)) {