diff options
author | jstebbins <[email protected]> | 2011-05-17 19:47:10 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2011-05-17 19:47:10 +0000 |
commit | a9005d4eec52d14e540a99078b5cd0ce227e79c3 (patch) | |
tree | 5bf988467a811551a1b1915cfc38493d657b4c2c /libhb/decssasub.c | |
parent | 10b965d8b1dbe294a66214b01e23d48ababdc37b (diff) |
Fix some problems with rgb2yuv and yuv2rgb
yuv2rgb converted incorrectly. Cb and Cr were swapped in 2 of the 3 conversion
expressions.
rgb2yuv was setting the color channels in the incorrect order in the output.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3981 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/decssasub.c')
-rw-r--r-- | libhb/decssasub.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libhb/decssasub.c b/libhb/decssasub.c index 03fb495db..460a8ddc0 100644 --- a/libhb/decssasub.c +++ b/libhb/decssasub.c @@ -549,8 +549,8 @@ static hb_buffer_t *ssa_decode_line_to_picture( hb_work_object_t * w, uint8_t *i int srcA = srcRgba[3]; *dstY = (srcYuv >> 16) & 0xff; - *dstU = (srcYuv >> 8 ) & 0xff; - *dstV = (srcYuv >> 0 ) & 0xff; + *dstV = (srcYuv >> 8 ) & 0xff; + *dstU = (srcYuv >> 0 ) & 0xff; *dstA = srcA / 16; // HB's max alpha value is 16 } |