changeset 27911:535e8e3803e9

Put variable declaration inside an #ifdef to avoid an unused variable warning.
author diego
date Mon, 17 Nov 2008 10:33:59 +0000
parents bcf4bb8e48e7
children 73c7a62c1d35
files libswscale/swscale_template.c
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libswscale/swscale_template.c	Mon Nov 17 10:16:28 2008 +0000
+++ b/libswscale/swscale_template.c	Mon Nov 17 10:33:59 2008 +0000
@@ -1826,11 +1826,12 @@
 
 static inline void RENAME(rgb24ToUV)(uint8_t *dstU, uint8_t *dstV, uint8_t *src1, uint8_t *src2, long width, uint32_t *unused)
 {
+#ifdef HAVE_MMX
+    assert(src1==src2);
+    RENAME(bgr24ToUV_mmx)(dstU, dstV, src1, width, PIX_FMT_RGB24);
+#else
     int i;
     assert(src1==src2);
-#ifdef HAVE_MMX
-    RENAME(bgr24ToUV_mmx)(dstU, dstV, src1, width, PIX_FMT_RGB24);
-#else
     for (i=0; i<width; i++)
     {
         int r= src1[3*i + 0];