fft-test: switch to new cpu flags API

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2012-08-16 21:28:05 +02:00
parent 3250231a02
commit e71df841ee
1 changed files with 5 additions and 3 deletions

View 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;
}
}