# HG changeset patch # User sdrik # Date 1241253653 0 # Node ID 80492f643e9ba557d6e08eef7cda3973a6596eb6 # Parent b224410fe43967f6814a4f77e4c52066c39e3fbb Fix chroma shift when scaling from ARGB on LE and BGRA on BE diff -r b224410fe439 -r 80492f643e9b libswscale/swscale_template.c --- a/libswscale/swscale_template.c Mon Apr 27 21:41:42 2009 +0000 +++ b/libswscale/swscale_template.c Sat May 02 08:40:53 2009 +0000 @@ -2533,7 +2533,7 @@ 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; }