summaryrefslogtreecommitdiff
path: root/libavutil/cpu.c
diff options
context:
space:
mode:
authorClément Bœsch <u@pkh.me>2017-06-28 15:20:45 +0200
committerClément Bœsch <u@pkh.me>2017-06-29 18:00:58 +0200
commit2658e66cd1be5d07f6db6f0cfacf7c69cec580d9 (patch)
treecd583aaded0d9b9126f21e2d3c4c9cc56ddb7b3f /libavutil/cpu.c
parent3821c004e2607fb4450f1635ebaf6a4b7d5aeef9 (diff)
lavu/cpu: disable MMX warning on non x86 platforms
We have AV_CPU_FLAG_ARMV8 == AV_CPU_FLAG_SSE3 which causes a trigger of this MMX warning on AArch64.
Diffstat (limited to 'libavutil/cpu.c')
-rw-r--r--libavutil/cpu.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavutil/cpu.c b/libavutil/cpu.c
index 16e0c9278f..a22da0fa8c 100644
--- a/libavutil/cpu.c
+++ b/libavutil/cpu.c
@@ -61,7 +61,8 @@ static int get_cpu_flags(void)
}
void av_force_cpu_flags(int arg){
- if ( (arg & ( AV_CPU_FLAG_3DNOW |
+ if (ARCH_X86 &&
+ (arg & ( AV_CPU_FLAG_3DNOW |
AV_CPU_FLAG_3DNOWEXT |
AV_CPU_FLAG_MMXEXT |
AV_CPU_FLAG_SSE |