aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2012-02-12 15:55:44 -0800
committerRonald S. Bultje <rsbultje@gmail.com>2012-02-13 07:14:04 -0800
commitd63b7d8c37e6d18c36d6e95f76efd934beb704c0 (patch)
treea197c9559c6aa67dfb3711279091e84ea568a253
parent1ca7dc60d2f2cac8fce1bdb53d3d5bae195161b0 (diff)
downloadffmpeg-d63b7d8c37e6d18c36d6e95f76efd934beb704c0.tar.gz
swscale: fix incorrect chroma bias in yuv2rgb48_1_c().
-rw-r--r--libswscale/output.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libswscale/output.c b/libswscale/output.c
index 5b2ba37993..a70cf1fc7c 100644
--- a/libswscale/output.c
+++ b/libswscale/output.c
@@ -810,8 +810,8 @@ yuv2rgb48_1_c_template(SwsContext *c, const int32_t *buf0,
for (i = 0; i < (dstW >> 1); i++) {
int Y1 = (buf0[i * 2] ) >> 2;
int Y2 = (buf0[i * 2 + 1]) >> 2;
- int U = (ubuf0[i] + ubuf1[i] + (-128 << 11)) >> 3;
- int V = (vbuf0[i] + vbuf1[i] + (-128 << 11)) >> 3;
+ int U = (ubuf0[i] + ubuf1[i] + (-128 << 12)) >> 3;
+ int V = (vbuf0[i] + vbuf1[i] + (-128 << 12)) >> 3;
int R, G, B;
Y1 -= c->yuv2rgb_y_offset;