mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
deinterlace: fix sign comparison
history_count is unsigned, so the whole comparison will be made as unsigned, and fail to reject what it was meant to. Coverity 206204
This commit is contained in:
parent
c6acd6368b
commit
46a39bdd4f
1 changed files with 2 additions and 2 deletions
|
@ -1872,8 +1872,8 @@ restart:
|
|||
if (ret != GST_FLOW_OK)
|
||||
goto no_buffer;
|
||||
|
||||
g_return_val_if_fail (self->history_count - 1 -
|
||||
gst_deinterlace_method_get_latency (self->method) >= 0, GST_FLOW_ERROR);
|
||||
g_return_val_if_fail (self->history_count >=
|
||||
gst_deinterlace_method_get_latency (self->method) + 1, GST_FLOW_ERROR);
|
||||
|
||||
buf =
|
||||
self->field_history[self->history_count - 1 -
|
||||
|
|
Loading…
Reference in a new issue