Mercurial > libavformat.hg
comparison utils.c @ 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 | 7096b97371b0 |
comparison
equal
deleted
inserted
replaced
605:deece487318e | 606:ef6d04c1dd9a |
---|---|
1615 if (file_size < 0) | 1615 if (file_size < 0) |
1616 file_size = 0; | 1616 file_size = 0; |
1617 } | 1617 } |
1618 ic->file_size = file_size; | 1618 ic->file_size = file_size; |
1619 | 1619 |
1620 if (ic->iformat == &mpegps_demux && file_size && !ic->pb.is_streamed) { | 1620 if ((ic->iformat == &mpegps_demux || ic->iformat == &mpegts_demux) && file_size && !ic->pb.is_streamed) { |
1621 /* get accurate estimate from the PTSes */ | 1621 /* get accurate estimate from the PTSes */ |
1622 av_estimate_timings_from_pts(ic); | 1622 av_estimate_timings_from_pts(ic); |
1623 } else if (av_has_timings(ic)) { | 1623 } else if (av_has_timings(ic)) { |
1624 /* at least one components has timings - we use them for all | 1624 /* at least one components has timings - we use them for all |
1625 the components */ | 1625 the components */ |