History

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

Jan Ekström committed 6 years ago

Commit c820c2d1 parent e8a88a11 file · +2 −1Browse files

Unified · Split

libavformat/mpegts.c+2−1
@@ -1343,7 +1343,8 @@ skip: · 1342 unmodified lines
13431343 }
13441344 }
13451345
1346− if (!pcr_found) {
1346+ if (pes->st->codecpar->codec_id == AV_CODEC_ID_DVB_TELETEXT &&
1347+ !pcr_found) {
13471348 av_log(pes->stream, AV_LOG_VERBOSE,
13481349 "Forcing DTS/PTS to be unset for a "
13491350 "non-trustworthy PES packet for PID %d as "

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t