aboutsummaryrefslogtreecommitdiffstats
path: root/libswscale/swscale.c
diff options
context:
space:
mode:
authorMohamed Naufal <naufal11@gmail.com>2011-06-30 11:57:32 +0300
committerMartin Storsjö <martin@martin.st>2011-06-30 11:58:38 +0300
commit705b21a06ed357ed2b432b967c4fcb09fb992d02 (patch)
tree69baca39f91e6f53d5e6492bb2251dd759489a10 /libswscale/swscale.c
parent71f029146c963f5bab61bce000839f20bd06549a (diff)
downloadffmpeg-705b21a06ed357ed2b432b967c4fcb09fb992d02.tar.gz
swscale: Unbreak build with --enable-small
This fixes building with --enable-small, by using the correct variable name. Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libswscale/swscale.c')
-rw-r--r--libswscale/swscale.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libswscale/swscale.c b/libswscale/swscale.c
index 644f84858c..1e4994ca6b 100644
--- a/libswscale/swscale.c
+++ b/libswscale/swscale.c
@@ -977,7 +977,7 @@ yuv2rgb_write(uint8_t *_dest, int i, int Y1, int Y2,
const uint32_t *b = (const uint32_t *) _b;
#if CONFIG_SMALL
- int sh = hasAlpha ? ((fmt == PIX_FMT_RGB32_1 || fmt == PIX_FMT_BGR32_1) ? 0 : 24) : 0;
+ int sh = hasAlpha ? ((target == PIX_FMT_RGB32_1 || target == PIX_FMT_BGR32_1) ? 0 : 24) : 0;
dest[i * 2 + 0] = r[Y1] + g[Y1] + b[Y1] + (hasAlpha ? A1 << sh : 0);
dest[i * 2 + 1] = r[Y2] + g[Y2] + b[Y2] + (hasAlpha ? A2 << sh : 0);