Commit ba91bf58 authored by Michael Niedermayer's avatar Michael Niedermayer

swscale: override the lack of the accurate rounding flag when needed for dither.

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent ec4207c4
......@@ -2366,7 +2366,8 @@ static void RENAME(sws_init_swScale)(SwsContext *c)
default: break;
}
} else {
c->yuv2yuv1 = RENAME(yuv2yuv1 );
int should_dither= isNBPS(c->srcFormat) || is16BPS(c->srcFormat);
c->yuv2yuv1 = should_dither ? RENAME(yuv2yuv1_ar ) : RENAME(yuv2yuv1 );
c->yuv2yuvX = RENAME(yuv2yuvX );
switch (c->dstFormat) {
case PIX_FMT_RGB32: c->yuv2packedX = RENAME(yuv2rgb32_X); break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment