summaryrefslogtreecommitdiffstats
path: root/libhb
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2009-05-29 16:26:51 +0000
committerjstebbins <[email protected]>2009-05-29 16:26:51 +0000
commitd4d3b610f2a1ebd784768422866fa3992d346d88 (patch)
tree72ffc5a47e38c345447dbca69acfa53548bc9db0 /libhb
parent94576282df3f44987d353999471c68dd497c1b3a (diff)
vobsub: fix yuv->rgb conversion of vobsub palette for mkv softsubs
the color components were reversed git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2459 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb')
-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);