summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenrik Gramner <henrik@gramner.com>2015-09-26 15:43:49 +0200
committerHenrik Gramner <henrik@gramner.com>2015-10-03 15:08:24 +0200
commit99982524f93a5fc5f8eadd3e8f9b4e3af446cdaa (patch)
tree61868760210f60a22b55ccfc42943b15bd5507ee
parentde2f5316991edb99c6f858fc23d750323884c70b (diff)
downloadffmpeg-streaming-99982524f93a5fc5f8eadd3e8f9b4e3af446cdaa.zip
ffmpeg-streaming-99982524f93a5fc5f8eadd3e8f9b4e3af446cdaa.tar.gz
checkasm: Remove use of deprecated av_set_cpu_flags_mask()
-rw-r--r--tests/checkasm/checkasm.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/checkasm/checkasm.c b/tests/checkasm/checkasm.c
index d4680f0..d7c2e8a 100644
--- a/tests/checkasm/checkasm.c
+++ b/tests/checkasm/checkasm.c
@@ -361,8 +361,9 @@ static void check_cpu_flag(const char *name, int flag)
int old_cpu_flag = state.cpu_flag;
flag |= old_cpu_flag;
- av_set_cpu_flags_mask(flag);
- state.cpu_flag = av_get_cpu_flags();
+ av_force_cpu_flags(-1);
+ state.cpu_flag = flag & av_get_cpu_flags();
+ av_force_cpu_flags(state.cpu_flag);
if (!flag || state.cpu_flag != old_cpu_flag) {
int i;
OpenPOWER on IntegriCloud