video-converter: don't do dither when set to NONE

This commit is contained in:
Wim Taymans 2015-01-28 17:29:45 +01:00
parent e16377c0c8
commit 620dc30d0f

View file

@ -1500,6 +1500,9 @@ chain_dither (GstVideoConverter * convert, GstLineCache * prev)
guint quant[4], target_quant;
method = GET_OPT_DITHER_METHOD (convert);
if (method == GST_VIDEO_DITHER_NONE)
return prev;
target_quant = GET_OPT_DITHER_QUANTIZATION (convert);
GST_DEBUG ("method %d, target-quantization %d", method, target_quant);