Skip to content

Commit

Permalink
libavformat/demux.c: fix duration estimates with original FFmpeg mpeg…
Browse files Browse the repository at this point in the history
…ts demuxer

I had fixed this previously, but the change must have been lost
in the move from utils.c to demux.c.
  • Loading branch information
ulmus-scott authored and bennettpeter committed Sep 19, 2022
1 parent 3d4bf90 commit 9da0f87
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mythtv/external/FFmpeg/libavformat/demux.c
Expand Up @@ -1900,7 +1900,8 @@ static void estimate_timings(AVFormatContext *ic, int64_t old_offset)
}

if ((!strcmp(ic->iformat->name, "mpeg") ||
!strcmp(ic->iformat->name, "mpegts")) &&
!strcmp(ic->iformat->name, "mpegts") ||
!strcmp(ic->iformat->name, "mpegts-ffmpeg")) &&
file_size && (ic->pb->seekable & AVIO_SEEKABLE_NORMAL)) {
/* get accurate estimate from the PTSes */
estimate_timings_from_pts(ic, old_offset);
Expand Down

0 comments on commit 9da0f87

Please sign in to comment.