tsdemux: Fix backwards PTS wraparound detection with ignore-pcr=true

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8326>
This commit is contained in:
Sebastian Dröge 2025-01-20 18:37:23 +02:00 committed by GStreamer Marge Bot
parent 2ff6a3ecb6
commit 03942ff5b4

View File

@ -2284,7 +2284,7 @@ mpegts_packetizer_pts_to_ts_internal (MpegTSPacketizer2 * packetizer,
pcrtable->base_time += diff;
pcrtable->base_pcrtime += diff;
} else if (pcrtable->base_pcrtime > tmp_pts
&& pcrtable->base_pcrtime > PCR_GST_MAX_VALUE / 2) {
&& pcrtable->base_pcrtime - tmp_pts > PCR_GST_MAX_VALUE / 2) {
pcrtable->pcroffset += PCR_GST_MAX_VALUE;
}
}