From acd8412069e6a040eb7a68c3be895412c415915c Mon Sep 17 00:00:00 2001 From: Arnaud de Turckheim Date: Tue, 30 Jul 2024 14:42:06 +0200 Subject: [PATCH] upipe_ts_demux: delete invalid DTS orig Delete invalid DTS orig so we can detect it and possibly fix it afterwards (in telx_probe for instance). --- lib/upipe-ts/upipe_ts_demux.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/upipe-ts/upipe_ts_demux.c b/lib/upipe-ts/upipe_ts_demux.c index 7d655a596..4c204ea01 100644 --- a/lib/upipe-ts/upipe_ts_demux.c +++ b/lib/upipe-ts/upipe_ts_demux.c @@ -765,10 +765,13 @@ static int upipe_ts_demux_output_clock_ts(struct upipe *upipe, upipe_warn_va(upipe, "late DTS %"PRIu64" (%"PRIu64" - %f ms)", dts_orig, TS_CLOCK_MAX - delta, (TS_CLOCK_MAX - delta) * 1000. / UCLOCK_FREQ); - } else + uref_clock_delete_date_orig(uref); + } else { upipe_warn_va(upipe, "too long delay for DTS %"PRIu64" " "(%"PRIu64" - %f ms)", dts_orig, delta, delta * 1000. / UCLOCK_FREQ); + uref_clock_delete_date_orig(uref); + } } return upipe_throw(upipe, event, uref);