gst-plugins-bad: mve: ensure best target found

Mark Nauwelaerts mnauw at kemper.freedesktop.org
Mon Jan 23 05:23:37 PST 2012


Module: gst-plugins-bad
Branch: master
Commit: 6b71ccb552bbebb572bac4a885a29767b286c576
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=6b71ccb552bbebb572bac4a885a29767b286c576

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