video-converter: only do dithering when needed

Only do dithering when one of the quantizers is > 1.
This commit is contained in:
Wim Taymans 2014-12-03 10:14:34 +01:00
parent e397b03f35
commit 6757296386

View file

@ -1466,10 +1466,11 @@ chain_dither (GstVideoConverter * convert, GstLineCache * prev)
flags |= GST_VIDEO_DITHER_FLAG_QUANTIZE;
quant[i] = target_quant;
}
do_dither = TRUE;
} else {
quant[i] = 0;
}
if (quant[i] > 1)
do_dither = TRUE;
}
}