diff options
author | Henrik Gramner <henrik@gramner.com> | 2015-09-26 16:43:49 +0300 |
---|---|---|
committer | Henrik Gramner <henrik@gramner.com> | 2015-10-03 16:08:24 +0300 |
commit | 99982524f93a5fc5f8eadd3e8f9b4e3af446cdaa (patch) | |
tree | 61868760210f60a22b55ccfc42943b15bd5507ee /tests/checkasm | |
parent | de2f5316991edb99c6f858fc23d750323884c70b (diff) |
checkasm: Remove use of deprecated av_set_cpu_flags_mask()
Diffstat (limited to 'tests/checkasm')
-rw-r--r-- | tests/checkasm/checkasm.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/checkasm/checkasm.c b/tests/checkasm/checkasm.c index d4680f08de..d7c2e8a3ef 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; |