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:
Vincent Penquerc'h 2014-04-16 17:25:44 +01:00
parent c6acd6368b
commit 46a39bdd4f

View file

@ -1872,8 +1872,8 @@ restart:
if (ret != GST_FLOW_OK) if (ret != GST_FLOW_OK)
goto no_buffer; goto no_buffer;
g_return_val_if_fail (self->history_count - 1 - g_return_val_if_fail (self->history_count >=
gst_deinterlace_method_get_latency (self->method) >= 0, GST_FLOW_ERROR); gst_deinterlace_method_get_latency (self->method) + 1, GST_FLOW_ERROR);
buf = buf =
self->field_history[self->history_count - 1 - self->field_history[self->history_count - 1 -