diff options
author | Cédric Schieli <cschieli@gmail.com> | 2009-05-02 08:40:53 +0000 |
---|---|---|
committer | Cédric Schieli <cschieli@gmail.com> | 2009-05-02 08:40:53 +0000 |
commit | f26711978666cac479d77ecce9e7feb5fb8b702a (patch) | |
tree | b80ac9857c0613bda5e8d50bcb52a1de1ccabf93 /libswscale/swscale_template.c | |
parent | 418f77ec6e28c8013110c922406c856379bdd707 (diff) | |
download | ffmpeg-f26711978666cac479d77ecce9e7feb5fb8b702a.tar.gz |
Fix chroma shift when scaling from ARGB on LE and BGRA on BE
Originally committed as revision 29242 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Diffstat (limited to 'libswscale/swscale_template.c')
-rw-r--r-- | libswscale/swscale_template.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |