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
@ -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…
x
Reference in New Issue
Block a user