aboutsummaryrefslogtreecommitdiffstats
path: root/libswscale/output.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2016-02-10 10:01:02 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2016-02-10 17:22:26 +0100
commit23261e60014908da7446e9b5bc7401dc30fdecd6 (patch)
treef0e14f97c4671870133ec0aa7afd21334a80cd76 /libswscale/output.c
parentbc9a5965c815cf7fd998d8ce14a18b8e861dd9ce (diff)
downloadandroid_external_ffmpeg-23261e60014908da7446e9b5bc7401dc30fdecd6.tar.gz
android_external_ffmpeg-23261e60014908da7446e9b5bc7401dc30fdecd6.tar.bz2
android_external_ffmpeg-23261e60014908da7446e9b5bc7401dc30fdecd6.zip
sws/output: fix ordered dither threshold for mono output
This makes sure that white stays white and black black Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libswscale/output.c')
-rw-r--r--libswscale/output.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libswscale/output.c b/libswscale/output.c
index 58118141aa..0c763c37bd 100644
--- a/libswscale/output.c
+++ b/libswscale/output.c
@@ -313,7 +313,7 @@ static void yuv2nv12cX_c(SwsContext *c, const int16_t *chrFilter, int chrFilterS
#define accumulate_bit(acc, val) \
acc <<= 1; \
- acc |= (val) >= (128 + 110)
+ acc |= (val) >= 234
#define output_pixel(pos, acc) \
if (target == AV_PIX_FMT_MONOBLACK) { \
pos = acc; \