diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-08-19 12:45:32 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-08-19 18:33:50 +0200 |
commit | 23b3141261b7ffed5f512eebbd8d82001ebf8523 (patch) | |
tree | 97f643de68ee2f67dd7d02b5895191ecb500adf3 /libswscale/swscale_unscaled.c | |
parent | 8c50ea2251b57d9200d079f33648712965a46fd8 (diff) | |
download | ffmpeg-23b3141261b7ffed5f512eebbd8d82001ebf8523.tar.gz |
swscale: improve dither checks
Bssed on patch by Øyvind Kolås <pippin@gimp.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libswscale/swscale_unscaled.c')
-rw-r--r-- | libswscale/swscale_unscaled.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libswscale/swscale_unscaled.c b/libswscale/swscale_unscaled.c index 88187211fd..b2b792fefd 100644 --- a/libswscale/swscale_unscaled.c +++ b/libswscale/swscale_unscaled.c @@ -1180,7 +1180,7 @@ void ff_get_unscaled_swscale(SwsContext *c) /* yuv2bgr */ if ((srcFormat == AV_PIX_FMT_YUV420P || srcFormat == AV_PIX_FMT_YUV422P || srcFormat == AV_PIX_FMT_YUVA420P) && isAnyRGB(dstFormat) && - !(flags & SWS_ACCURATE_RND) && c->dither != SWS_DITHER_ED && !(dstH & 1)) { + !(flags & SWS_ACCURATE_RND) && (c->dither == SWS_DITHER_BAYER || c->dither == SWS_DITHER_AUTO) && !(dstH & 1)) { c->swScale = ff_yuv2rgb_get_func_ptr(c); } |