]> git.sesse.net Git - ffmpeg/commitdiff
Move preprocessor condition before variable declaration, fixes the warning:
authorDiego Biurrun <diego@biurrun.de>
Sun, 10 May 2009 11:37:04 +0000 (11:37 +0000)
committerDiego Biurrun <diego@biurrun.de>
Sun, 10 May 2009 11:37:04 +0000 (11:37 +0000)
libswscale/swscale.c:1795: warning: unused variable 'flags'

Originally committed as revision 29287 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

libswscale/swscale.c

index a0954ad845e522adc10e7c43e03b0203dd9c07b2..d8f4b0b67dec6a5f22e31db7b7545d90077b0187 100644 (file)
@@ -1792,9 +1792,9 @@ static void globalInit(void){
 
 static SwsFunc getSwsFunc(SwsContext *c)
 {
+#if CONFIG_RUNTIME_CPUDETECT && CONFIG_GPL
     int flags = c->flags;
 
-#if CONFIG_RUNTIME_CPUDETECT && CONFIG_GPL
 #if ARCH_X86
     // ordered per speed fastest first
     if (flags & SWS_CPU_CAPS_MMX2) {