[FFmpeg-devel] [PATCH][RFC] tests/checkasm/checkasm: remove use of deprecated av_set_cpu_flags_mask()
Ganesh Ajjanagadde
gajjanagadde at gmail.com
Sat Sep 26 02:07:40 CEST 2015
This patch completes the removal of all uses of av_set_cpu_flags_mask, so the
deprecated function can be removed in a future version bump.
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde at gmail.com>
---
tests/checkasm/checkasm.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tests/checkasm/checkasm.c b/tests/checkasm/checkasm.c
index 2bfa9d4..5981040 100644
--- a/tests/checkasm/checkasm.c
+++ b/tests/checkasm/checkasm.c
@@ -323,7 +323,8 @@ 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);
+ flag &= av_get_cpu_flags();
+ av_force_cpu_flags(flag);
state.cpu_flag = av_get_cpu_flags();
if (!flag || state.cpu_flag != old_cpu_flag) {
--
2.5.3
More information about the ffmpeg-devel
mailing list