diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2016-02-10 12:01:02 +0300 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-02-10 19:22:26 +0300 |
commit | 23261e60014908da7446e9b5bc7401dc30fdecd6 (patch) | |
tree | f0e14f97c4671870133ec0aa7afd21334a80cd76 /libswscale/output.c | |
parent | bc9a5965c815cf7fd998d8ce14a18b8e861dd9ce (diff) |
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.c | 2 |
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; \ |