diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2011-08-02 15:42:35 -0700 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2011-08-12 11:54:25 -0700 |
commit | 28c1115a915e4e198bfb6bd39909b2d1327c1454 (patch) | |
tree | 3c39829d2a10105f780da17c7a7593cab35887b8 /libswscale/x86 | |
parent | b2c087871dafc7d030b2d48457ddff597dfd4925 (diff) | |
download | ffmpeg-28c1115a915e4e198bfb6bd39909b2d1327c1454.tar.gz |
swscale: use 15-bit intermediates for 9/10-bit scaling.
Diffstat (limited to 'libswscale/x86')
-rw-r--r-- | libswscale/x86/swscale_template.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libswscale/x86/swscale_template.c b/libswscale/x86/swscale_template.c index 28ec4d2d9c..0a5f5d5f30 100644 --- a/libswscale/x86/swscale_template.c +++ b/libswscale/x86/swscale_template.c @@ -2316,7 +2316,7 @@ static av_cold void RENAME(sws_init_swScale)(SwsContext *c) } } - if (c->scalingBpp == 8) { + if (c->srcBpc == 8 && c->dstBpc <= 10) { #if !COMPILE_TEMPLATE_MMX2 c->hScale = RENAME(hScale ); #endif /* !COMPILE_TEMPLATE_MMX2 */ |