Commit 6465c820 authored by Kieran Kunhya's avatar Kieran Kunhya Committed by Ronald S. Bultje

Fix 9/10 bit in swscale.

Signed-off-by: 's avatarRonald S. Bultje <rsbultje@gmail.com>
parent a1217548
......@@ -233,7 +233,7 @@ static av_always_inline void yuv2yuvX16inC_template(const int16_t *lumFilter, co
} \
}
for (i = 0; i < dstW; i++) {
int val = 1 << 10;
int val = 1 << (26-output_bits);
int j;
for (j = 0; j < lumFilterSize; j++)
......@@ -244,8 +244,8 @@ static av_always_inline void yuv2yuvX16inC_template(const int16_t *lumFilter, co
if (uDest) {
for (i = 0; i < chrDstW; i++) {
int u = 1 << 10;
int v = 1 << 10;
int u = 1 << (26-output_bits);
int v = 1 << (26-output_bits);
int j;
for (j = 0; j < chrFilterSize; j++) {
......@@ -260,7 +260,7 @@ static av_always_inline void yuv2yuvX16inC_template(const int16_t *lumFilter, co
if (CONFIG_SWSCALE_ALPHA && aDest) {
for (i = 0; i < dstW; i++) {
int val = 1 << 10;
int val = 1 << (26-output_bits);
int j;
for (j = 0; j < lumFilterSize; j++)
......
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