mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
validate: ssim: Do not compare unsigned to < 0
CID 1415473
This commit is contained in:
parent
c7483a90f0
commit
7463819969
1 changed files with 2 additions and 1 deletions
|
@ -597,7 +597,8 @@ _should_dump_buffer (ValidateSsimOverride * self,
|
||||||
if (priv->recurrence == 0)
|
if (priv->recurrence == 0)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
if (ABS (position - priv->last_dump_position) >= priv->recurrence)
|
if (position > priv->last_dump_position ?
|
||||||
|
position - priv->last_dump_position : 0 >= priv->recurrence)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
Loading…
Reference in a new issue