Fix 9/10 bit in swscale.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
pull/2/head
Kieran Kunhya 14 years ago committed by Ronald S. Bultje
parent a121754852
commit 6465c820da
  1. 8
      libswscale/swscale.c

@ -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++)

Loading…
Cancel
Save