[FFmpeg-cvslog] r27582 - trunk/libswscale/swscale_template.c

michael subversion
Thu Sep 11 16:47:18 CEST 2008


Author: michael
Date: Thu Sep 11 16:47:18 2008
New Revision: 27582

Log:
Fix typo that lead to averaging of the same pixel in rgb24ToUV_half().


Modified:
   trunk/libswscale/swscale_template.c

Modified: trunk/libswscale/swscale_template.c
==============================================================================
--- trunk/libswscale/swscale_template.c	(original)
+++ trunk/libswscale/swscale_template.c	Thu Sep 11 16:47:18 2008
@@ -2109,9 +2109,9 @@ static inline void RENAME(rgb24ToUV_half
     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);




More information about the ffmpeg-cvslog mailing list