sws: fix typo in xyz2rgb matrix use.

Found-by: ubitux
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2013-04-28 19:57:45 +02:00
parent 54429142c5
commit cb23b06e5e
2 changed files with 3 additions and 3 deletions

View File

@ -823,7 +823,7 @@ static void xyz12Torgb48(struct SwsContext *c, uint16_t *dst,
c->xyz2rgb_matrix[1][1] * y + c->xyz2rgb_matrix[1][1] * y +
c->xyz2rgb_matrix[1][2] * z >> 12; c->xyz2rgb_matrix[1][2] * z >> 12;
b = c->xyz2rgb_matrix[2][0] * x + b = c->xyz2rgb_matrix[2][0] * x +
c->xyz2rgb_matrix[1][2] * y + c->xyz2rgb_matrix[2][1] * y +
c->xyz2rgb_matrix[2][2] * z >> 12; c->xyz2rgb_matrix[2][2] * z >> 12;
// limit values to 12-bit depth // limit values to 12-bit depth

View File

@ -1,3 +1,3 @@
#tb 0: 1/24 #tb 0: 1/24
0, 0, 0, 1, 12441600, 0x05a68cf7 0, 0, 0, 1, 12441600, 0x380d805a
0, 1, 1, 1, 12441600, 0x43788893 0, 1, 1, 1, 12441600, 0xfde5a60a