Skip to content

Commit

Permalink
upipe_ts_demux: delete invalid DTS orig
Browse files Browse the repository at this point in the history
Delete invalid DTS orig so we can detect it and possibly fix it
afterwards (in telx_probe for instance).
  • Loading branch information
quarium authored and cmassiot committed Aug 16, 2024
1 parent 61a6e25 commit acd8412
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/upipe-ts/upipe_ts_demux.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit acd8412

Please sign in to comment.