adaptivedemux2: Remove useless ABS

Just compare the difference (in the right order)

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8229>
This commit is contained in:
Edward Hervey 2025-01-04 10:00:07 +01:00 committed by GStreamer Marge Bot
parent 9f4f500543
commit 02df2a5e9a

View file

@ -319,7 +319,7 @@ get_first_mpegts_time (const guint8 * data, gsize size, guint packet_size)
if (GST_CLOCK_TIME_IS_VALID (pts)) {
/* Only take the PTS if it's lower than the dts and does not differ
* by more than a second (which would indicate bogus values) */
if (pts < dts && ABS (pts - dts) < GST_SECOND)
if (pts < dts && (dts - pts) < GST_SECOND)
internal_time = pts;
else
internal_time = dts;