summaryrefslogtreecommitdiff
path: root/libswscale
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-04-28 19:57:45 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-04-28 19:57:45 +0200
commitcb23b06e5e263663b20d6c1231ee1d86e6c54617 (patch)
treeb93d073573918f1065b44f1bfc8a371018b07f55 /libswscale
parent54429142c59656e6e143319ffc390a03de3e9f93 (diff)
sws: fix typo in xyz2rgb matrix use.
Found-by: ubitux Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libswscale')
-rw-r--r--libswscale/swscale.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libswscale/swscale.c b/libswscale/swscale.c
index 15810728a1..c34c56ca62 100644
--- a/libswscale/swscale.c
+++ b/libswscale/swscale.c
@@ -823,7 +823,7 @@ static void xyz12Torgb48(struct SwsContext *c, uint16_t *dst,
c->xyz2rgb_matrix[1][1] * y +
c->xyz2rgb_matrix[1][2] * z >> 12;
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;
// limit values to 12-bit depth