Commit 46a39bdd authored by Vincent Penquerc'h's avatar Vincent Penquerc'h
Browse files

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
parent c6acd636
......@@ -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 -
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment