mirror of https://git.ffmpeg.org/ffmpeg.git
swscale: fix incorrect chroma bias in yuv2rgb48_1_c().
This commit is contained in:
parent
1ca7dc60d2
commit
d63b7d8c37
|
@ -810,8 +810,8 @@ yuv2rgb48_1_c_template(SwsContext *c, const int32_t *buf0,
|
||||||
for (i = 0; i < (dstW >> 1); i++) {
|
for (i = 0; i < (dstW >> 1); i++) {
|
||||||
int Y1 = (buf0[i * 2] ) >> 2;
|
int Y1 = (buf0[i * 2] ) >> 2;
|
||||||
int Y2 = (buf0[i * 2 + 1]) >> 2;
|
int Y2 = (buf0[i * 2 + 1]) >> 2;
|
||||||
int U = (ubuf0[i] + ubuf1[i] + (-128 << 11)) >> 3;
|
int U = (ubuf0[i] + ubuf1[i] + (-128 << 12)) >> 3;
|
||||||
int V = (vbuf0[i] + vbuf1[i] + (-128 << 11)) >> 3;
|
int V = (vbuf0[i] + vbuf1[i] + (-128 << 12)) >> 3;
|
||||||
int R, G, B;
|
int R, G, B;
|
||||||
|
|
||||||
Y1 -= c->yuv2rgb_y_offset;
|
Y1 -= c->yuv2rgb_y_offset;
|
||||||
|
|
Loading…
Reference in New Issue