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
Unified · Split
| @@ -1343,7 +1343,8 @@ skip: · 1342 unmodified lines | |||
| 1343 | } | 1343 | } |
| 1344 | } | 1344 | } |
| 1345 | 1345 | ||
| 1346 | if (!pcr_found) { | 1346 | if (pes->st->codecpar->codec_id == AV_CODEC_ID_DVB_TELETEXT && |
| 1347 | !pcr_found) { | ||
| 1347 | av_log(pes->stream, AV_LOG_VERBOSE, | 1348 | av_log(pes->stream, AV_LOG_VERBOSE, |
| 1348 | "Forcing DTS/PTS to be unset for a " | 1349 | "Forcing DTS/PTS to be unset for a " |
| 1349 | "non-trustworthy PES packet for PID %d as " | 1350 | "non-trustworthy PES packet for PID %d as " |