summaryrefslogtreecommitdiffstats
path: root/libswscale/swscale_template.c
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-11-17 10:33:59 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-11-17 10:33:59 +0000
commitf76cb1f891301a0bdf9ebe5ae5e8c12ac44736e8 (patch)
treea6a53aab71ce986aea01c571e496fdb4e8b5ed35 /libswscale/swscale_template.c
parent7a7b3d95e3fb62d90c6508c776858014c5edd750 (diff)
downloadmpv-f76cb1f891301a0bdf9ebe5ae5e8c12ac44736e8.tar.bz2
mpv-f76cb1f891301a0bdf9ebe5ae5e8c12ac44736e8.tar.xz
Put variable declaration inside an #ifdef to avoid an unused variable warning.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27945 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libswscale/swscale_template.c')
-rw-r--r--libswscale/swscale_template.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libswscale/swscale_template.c b/libswscale/swscale_template.c
index 5754c10871..4c8bc6e066 100644
--- a/libswscale/swscale_template.c
+++ b/libswscale/swscale_template.c
@@ -1826,11 +1826,12 @@ static inline void RENAME(rgb24ToY)(uint8_t *dst, uint8_t *src, long width, uint
static inline void RENAME(rgb24ToUV)(uint8_t *dstU, uint8_t *dstV, uint8_t *src1, uint8_t *src2, long width, uint32_t *unused)
{
- int i;
- assert(src1==src2);
#ifdef HAVE_MMX
+ assert(src1==src2);
RENAME(bgr24ToUV_mmx)(dstU, dstV, src1, width, PIX_FMT_RGB24);
#else
+ int i;
+ assert(src1==src2);
for (i=0; i<width; i++)
{
int r= src1[3*i + 0];