diff options
author | Diego Biurrun <diego@biurrun.de> | 2008-11-17 10:33:59 +0000 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2008-11-17 10:33:59 +0000 |
commit | 5155b8395c0fe6079bd46cb821423c47b02b5c0b (patch) | |
tree | 91800357e397f289d4b9d3fd58359aefeffa24ef /libswscale | |
parent | ce09d560b7e42a9ef60bbb85c6ba1e1ffc2aa16f (diff) | |
download | ffmpeg-5155b8395c0fe6079bd46cb821423c47b02b5c0b.tar.gz |
Put variable declaration inside an #ifdef to avoid an unused variable warning.
Originally committed as revision 27945 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Diffstat (limited to 'libswscale')
-rw-r--r-- | libswscale/swscale_template.c | 5 |
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]; |