Commit 8e123be7 authored by Petri Hintukainen's avatar Petri Hintukainen Committed by Jean-Baptiste Kempf

mpeg-ts: fix PCRCheckDTS() with broken PCR

Fixes #16148
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent c84a1a1a
......@@ -3091,6 +3091,11 @@ static void PCRCheckDTS( demux_t *p_demux, ts_pmt_t *p_pmt, mtime_t i_pcr)
&i_dts, &i_pts, &i_stream_id ) == VLC_EGENERIC )
continue;
if (p_pmt->pcr.i_pcroffset > 0) {
i_dts += p_pmt->pcr.i_pcroffset;
i_pts += p_pmt->pcr.i_pcroffset;
}
if ((i_dts > 0 && i_dts <= i_pcr) || (i_pts > 0 && i_pts <= i_pcr)) {
msg_Err( p_demux, "send queued data for pid %d: DTS %"PRId64" >= PCR %"PRId64"\n", p_pid->i_pid, i_dts, i_pcr);
ParseData( p_demux, p_pid );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment