[0.10] gst-plugins-good: deinterlace: fix arithmetic for unsigned comparison

Tim Müller tpm at kemper.freedesktop.org
Mon Jan 23 15:41:00 PST 2012


Module: gst-plugins-good
Branch: 0.10
Commit: 04328648a5e5d7b3ebea383b302355ef05b93f3b
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-good/commit/?id=04328648a5e5d7b3ebea383b302355ef05b93f3b

Author: Mark Nauwelaerts <mark.nauwelaerts at collabora.co.uk>
Date:   Fri Jan 20 16:57:52 2012 +0100

deinterlace: fix arithmetic for unsigned comparison

---

 gst/deinterlace/gstdeinterlace.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/gst/deinterlace/gstdeinterlace.c b/gst/deinterlace/gstdeinterlace.c
index 373fb20..a79b836 100644
--- a/gst/deinterlace/gstdeinterlace.c
+++ b/gst/deinterlace/gstdeinterlace.c
@@ -1706,8 +1706,8 @@ restart:
       gst_buffer_set_caps (outbuf, GST_PAD_CAPS (self->srcpad));
     }
 
-    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 >=
+        1 + gst_deinterlace_method_get_latency (self->method), GST_FLOW_ERROR);
 
     buf =
         self->field_history[self->history_count - 1 -



More information about the gstreamer-commits mailing list