Commit 37a38b75 authored by François Cartegnie's avatar François Cartegnie 🤞

demux: ts: add missing ts wrap

parent 25432f56
......@@ -2124,6 +2124,9 @@ static void PCRCheckDTS( demux_t *p_demux, ts_pmt_t *p_pmt, mtime_t i_pcr)
i_pts += p_pmt->pcr.i_pcroffset;
}
i_dts = TimeStampWrapAround( i_pcr, i_dts );
i_pts = TimeStampWrapAround( i_pcr, i_pts );
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);
ParsePESDataChain( 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