diff options
Diffstat (limited to 'gst/mve')
-rw-r--r-- | gst/mve/gstmvemux.c | 2 | ||||
-rw-r--r-- | gst/mve/mvevideoenc16.c | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/gst/mve/gstmvemux.c b/gst/mve/gstmvemux.c index e6c2fcb6c..3bf07b01e 100644 --- a/gst/mve/gstmvemux.c +++ b/gst/mve/gstmvemux.c @@ -337,7 +337,7 @@ static void gst_mve_mux_palette_analyze (GstMveMux * mvemux, const GstBuffer * pal, guint16 * first, guint16 * last) { - guint i; + gint i; guint32 *col1; col1 = (guint32 *) GST_BUFFER_DATA (pal); 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; |