From 620dc30d0f81b709d7e3f36a5979a4a903559a76 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 28 Jan 2015 17:29:45 +0100 Subject: [PATCH] video-converter: don't do dither when set to NONE --- gst-libs/gst/video/video-converter.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gst-libs/gst/video/video-converter.c b/gst-libs/gst/video/video-converter.c index efe6557bc8..69e82114d6 100644 --- a/gst-libs/gst/video/video-converter.c +++ b/gst-libs/gst/video/video-converter.c @@ -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);