mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 03:59:43 +00:00
use pts based duration/bitrate guessing code for mpeg-ts
Originally committed as revision 3731 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
f9a35124a7
commit
d43ed92def
@ -1617,7 +1617,7 @@ static void av_estimate_timings(AVFormatContext *ic)
|
||||
}
|
||||
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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user