diff options
author | michael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-09-11 14:47:18 +0000 |
---|---|---|
committer | michael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-09-11 14:47:18 +0000 |
commit | 6d7e7200096d9444050e8cb525675f9342dceb24 (patch) | |
tree | e3fee00cfd615e9bac45cd86cfb2f71ec2394e2a /libswscale | |
parent | 42643629cd217dea92468b37e1447201134755c4 (diff) | |
download | mpv-6d7e7200096d9444050e8cb525675f9342dceb24.tar.bz2 mpv-6d7e7200096d9444050e8cb525675f9342dceb24.tar.xz |
Fix typo that lead to averaging of the same pixel in rgb24ToUV_half().
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27582 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libswscale')
-rw-r--r-- | libswscale/swscale_template.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libswscale/swscale_template.c b/libswscale/swscale_template.c index a52dfd55d9..c7f278bb89 100644 --- a/libswscale/swscale_template.c +++ b/libswscale/swscale_template.c @@ -2109,9 +2109,9 @@ static inline void RENAME(rgb24ToUV_half)(uint8_t *dstU, uint8_t *dstV, uint8_t assert(src1==src2); for (i=0; i<width; i++) { - int r= src1[6*i + 0] + src1[6*i + 0]; - int g= src1[6*i + 1] + src1[6*i + 1]; - int b= src1[6*i + 2] + src1[6*i + 2]; + int r= src1[6*i + 0] + src1[6*i + 3]; + int g= src1[6*i + 1] + src1[6*i + 4]; + int b= src1[6*i + 2] + src1[6*i + 5]; dstU[i]= (RU*r + GU*g + BU*b + (257<<RGB2YUV_SHIFT))>>(RGB2YUV_SHIFT+1); dstV[i]= (RV*r + GV*g + BV*b + (257<<RGB2YUV_SHIFT))>>(RGB2YUV_SHIFT+1); |