[FFmpeg-cvslog] r28933 - trunk/libswscale/swscale.c

sdrik subversion
Wed Mar 11 15:22:53 CET 2009


Author: sdrik
Date: Wed Mar 11 15:22:53 2009
New Revision: 28933

Log:
In initMMX2HScaler, when chrDstW is not divisible by 4, the last filterPos element is initialized on the wrong index (not evenly aligned). This fixes it

Modified:
   trunk/libswscale/swscale.c

Modified: trunk/libswscale/swscale.c
==============================================================================
--- trunk/libswscale/swscale.c	Wed Mar 11 01:25:23 2009	(r28932)
+++ trunk/libswscale/swscale.c	Wed Mar 11 15:22:53 2009	(r28933)
@@ -1622,7 +1622,7 @@ static void initMMX2HScaler(int dstW, in
         }
         xpos+=xInc;
     }
-    filterPos[i/2]= xpos>>16; // needed to jump to the next part
+    filterPos[((i/2)+1)&(~1)]= xpos>>16; // needed to jump to the next part
 }
 #endif /* COMPILE_MMX2 */
 




More information about the ffmpeg-cvslog mailing list