[FFmpeg-cvslog] avformat/mpegts: only reset timestamps to NOPTS for DVB teletext
Jan Ekström
git at videolan.org
Tue Aug 18 22:43:10 EEST 2020
ffmpeg | branch: master | Jan Ekström <jeebjp at gmail.com> | Thu Aug 13 00:27:09 2020 +0300| [c820c2d4bfb7e2573f7bf8e2a3544a98e5a11343] | committer: Jan Ekström
avformat/mpegts: only reset timestamps to NOPTS for DVB teletext
While having the possibility of non-NOPTS values that can suddenly
jump in time due to adjustments to match PCR is not nice for DVB
subtitles, apparently the parser for this format bases its behavior on
whether the packets' timestamps are NOPTS or not. Thus while we can
adjust timestamps, we should exclude DVB subtitles from the timestamp
unsetting logic.
Fixes #8844
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c820c2d4bfb7e2573f7bf8e2a3544a98e5a11343
---
libavformat/mpegts.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
index f71f18a57d..50d4d5e9bc 100644
--- a/libavformat/mpegts.c
+++ b/libavformat/mpegts.c
@@ -1343,7 +1343,8 @@ skip:
}
}
- if (!pcr_found) {
+ if (pes->st->codecpar->codec_id == AV_CODEC_ID_DVB_TELETEXT &&
+ !pcr_found) {
av_log(pes->stream, AV_LOG_VERBOSE,
"Forcing DTS/PTS to be unset for a "
"non-trustworthy PES packet for PID %d as "
More information about the ffmpeg-cvslog
mailing list