diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-08-16 21:28:05 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-08-16 22:04:46 +0200 |
commit | e71df841eec9b1cdb37cf89214385d96b5c5dc4d (patch) | |
tree | 8a8429a4e935131faf1d179c5fc26c8d6ce1cee2 | |
parent | 3250231a0292d716afd9d1ad25fc39bacda17f67 (diff) | |
download | ffmpeg-e71df841eec9b1cdb37cf89214385d96b5c5dc4d.tar.gz |
fft-test: switch to new cpu flags API
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/fft-test.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libavcodec/fft-test.c b/libavcodec/fft-test.c index d9cd8bd1c7..681e247597 100644 --- a/libavcodec/fft-test.c +++ b/libavcodec/fft-test.c @@ -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; } } |