diff options
author | Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk> | 2012-01-23 13:57:32 +0100 |
---|---|---|
committer | Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk> | 2012-01-23 14:13:47 +0100 |
commit | 6b71ccb552bbebb572bac4a885a29767b286c576 (patch) | |
tree | c988660de7ce3426951b12c3bb43342b7b1f89ab /gst/mve | |
parent | c004a1e4623be673c59dba85e64fe1ce9b539965 (diff) | |
download | gstreamer-plugins-bad-6b71ccb552bbebb572bac4a885a29767b286c576.tar.gz |
mve: ensure best target found
Diffstat (limited to 'gst/mve')
-rw-r--r-- | 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 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; |