summaryrefslogtreecommitdiff
path: root/gst/mve
diff options
context:
space:
mode:
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>2012-01-23 13:57:32 +0100
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>2012-01-23 14:13:47 +0100
commit6b71ccb552bbebb572bac4a885a29767b286c576 (patch)
treec988660de7ce3426951b12c3bb43342b7b1f89ab /gst/mve
parentc004a1e4623be673c59dba85e64fe1ce9b539965 (diff)
downloadgstreamer-plugins-bad-6b71ccb552bbebb572bac4a885a29767b286c576.tar.gz
mve: ensure best target found
Diffstat (limited to 'gst/mve')
-rw-r--r--gst/mve/mvevideoenc16.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gst/mve/mvevideoenc16.c b/gst/mve/mvevideoenc16.c
index ec82523dc..d94e3daca 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;