Revision d43ed92d

View differences:

libavformat/utils.c
1617 1617
    }
1618 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 1621
        /* get accurate estimate from the PTSes */
1622 1622
        av_estimate_timings_from_pts(ic);
1623 1623
    } else if (av_has_timings(ic)) {

Also available in: Unified diff