[0.10] gst-plugins-bad: mve: ensure best target found

Tim Müller tpm at kemper.freedesktop.org
Mon Jan 30 04:41:46 PST 2012


Module: gst-plugins-bad
Branch: 0.10
Commit: 4692f5234a5848d2abb706d6c34f5e7e462a6158
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=4692f5234a5848d2abb706d6c34f5e7e462a6158

Author: Mark Nauwelaerts <mark.nauwelaerts at collabora.co.uk>
Date:   Mon Jan 23 13:57:32 2012 +0100

mve: ensure best target found

---

 gst/mve/mvevideoenc16.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/gst/mve/mvevideoenc16.c b/gst/mve/mvevideoenc16.c
index ec82523..d94e3da 100644
--- a/gst/mve/mvevideoenc16.c
+++ b/gst/mve/mvevideoenc16.c
@@ -285,6 +285,9 @@ mve_quantize (const GstMveMux * mve, const guint16 * src,
           }
         }
 
+        if (G_UNLIKELY (!best))
+          continue;
+
         ++best->hits;
         best->r_total += r;
         best->g_total += g;



More information about the gstreamer-commits mailing list