From 1a132a4acd82bb7ac11ed23390222532954fdce3 Mon Sep 17 00:00:00 2001 From: sdrik Date: Sat, 2 May 2009 08:40:53 +0000 Subject: Fix chroma shift when scaling from ARGB on LE and BGRA on BE git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29242 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libswscale/swscale_template.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libswscale/swscale_template.c b/libswscale/swscale_template.c index fe68c16b3d..a605b9b663 100644 --- a/libswscale/swscale_template.c +++ b/libswscale/swscale_template.c @@ -2533,7 +2533,7 @@ inline static void RENAME(hcscale)(SwsContext *c, uint16_t *dst, long dstWidth, 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; } -- cgit v1.2.3