summaryrefslogtreecommitdiffstats
path: root/libhb/muxmkv.c
diff options
context:
space:
mode:
Diffstat (limited to 'libhb/muxmkv.c')
-rw-r--r--libhb/muxmkv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libhb/muxmkv.c b/libhb/muxmkv.c
index 3f5e9637d..ace68f454 100644
--- a/libhb/muxmkv.c
+++ b/libhb/muxmkv.c
@@ -40,8 +40,8 @@ static int yuv2rgb(int yuv)
int r, g, b;
y = (yuv >> 16) & 0xff;
- Cr = (yuv >> 8) & 0xff;
- Cb = (yuv) & 0xff;
+ Cb = (yuv >> 8) & 0xff;
+ Cr = (yuv ) & 0xff;
r = 1.164 * (y - 16) + 2.018 * (Cb - 128);
g = 1.164 * (y - 16) - 0.813 * (Cr - 128) - 0.391 * (Cb - 128);