From 4a2f29634760bb42a323373a68f373494f15afad Mon Sep 17 00:00:00 2001 From: Scott Theisen Date: Mon, 5 Sep 2022 16:42:39 -0400 Subject: [PATCH] libavformat/demux.c: fix duration estimates with original FFmpeg mpegts demuxer I had fixed this previously, but the change must have been lost in the move from utils.c to demux.c. --- mythtv/external/FFmpeg/libavformat/demux.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mythtv/external/FFmpeg/libavformat/demux.c b/mythtv/external/FFmpeg/libavformat/demux.c index 08a52496cdd..e26638f32cd 100644 --- a/mythtv/external/FFmpeg/libavformat/demux.c +++ b/mythtv/external/FFmpeg/libavformat/demux.c @@ -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);