[FFmpeg-cvslog] fft-test: switch to new cpu flags API

Michael Niedermayer git at videolan.org
Thu Aug 16 22:09:14 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Aug 16 21:28:05 2012 +0200| [e71df841eec9b1cdb37cf89214385d96b5c5dc4d] | committer: Michael Niedermayer

fft-test: switch to new cpu flags API

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e71df841eec9b1cdb37cf89214385d96b5c5dc4d
---

 libavcodec/fft-test.c |    8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/libavcodec/fft-test.c b/libavcodec/fft-test.c
index d9cd8bd..681e247 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;
         }
     }



More information about the ffmpeg-cvslog mailing list