fft-test: switch to new cpu flags API
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 16 Aug 2012 19:28:05 +0000 (21:28 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 16 Aug 2012 20:04:46 +0000 (22:04 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/fft-test.c

index d9cd8bd..681e247 100644 (file)
@@ -288,10 +288,12 @@ int main(int argc, char **argv)
             scale = atof(optarg);
             break;
         case 'c':
-            cpuflags = av_parse_cpu_flags(optarg);
-            if (cpuflags < 0)
+            cpuflags = av_get_cpu_flags();
+
+            if (av_parse_cpu_caps(&cpuflags, optarg) < 0)
                 return 1;
-            av_set_cpu_flags_mask(cpuflags);
+
+            av_force_cpu_flags(cpuflags);
             break;
         }
     }