mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 20:05:38 +00:00
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:
parent
9f4f500543
commit
02df2a5e9a
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue