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

michael subversion
Fri Sep 12 20:05:57 CEST 2008


Author: michael
Date: Fri Sep 12 20:05:57 2008
New Revision: 27590

Log:
Fix another 1000l bug in the mono input code.


Modified:
   trunk/libswscale/swscale_template.c

Modified: trunk/libswscale/swscale_template.c
==============================================================================
--- trunk/libswscale/swscale_template.c	(original)
+++ trunk/libswscale/swscale_template.c	Fri Sep 12 20:05:57 2008
@@ -2148,8 +2148,8 @@ static inline void RENAME(mono2Y)(uint8_
     int i, j;
     for (i=0; i<width/8; i++){
         int d= format == PIX_FMT_MONOBLACK ? src[i] : ~src[i];
-        for(j=7; j>=0; j--)
-            dst[i]= ((d>>j)&1)*255;
+        for(j=0; j<8; j++)
+            dst[8*i+j]= ((d>>(7-j))&1)*255;
     }
 }
 




More information about the ffmpeg-cvslog mailing list