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

sdrik subversion
Sat May 2 10:40:53 CEST 2009


Author: sdrik
Date: Sat May  2 10:40:53 2009
New Revision: 29242

Log:
Fix chroma shift when scaling from ARGB on LE and BGRA on BE

Modified:
   trunk/libswscale/swscale_template.c

Modified: trunk/libswscale/swscale_template.c
==============================================================================
--- trunk/libswscale/swscale_template.c	Mon Apr 27 23:41:42 2009	(r29241)
+++ trunk/libswscale/swscale_template.c	Sat May  2 10:40:53 2009	(r29242)
@@ -2533,7 +2533,7 @@ inline static void RENAME(hcscale)(SwsCo
     if (isGray(srcFormat) || srcFormat==PIX_FMT_MONOBLACK || srcFormat==PIX_FMT_MONOWHITE)
         return;
 
-    if (srcFormat==PIX_FMT_RGB32_1) {
+    if (srcFormat==PIX_FMT_RGB32_1 || srcFormat==PIX_FMT_BGR32_1) {
         src1 += ALT32_CORR;
         src2 += ALT32_CORR;
     }



More information about the ffmpeg-cvslog mailing list