Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Bœsch <u@pkh.me>2017-06-28 16:20:45 +0300
committerClément Bœsch <u@pkh.me>2017-06-29 19:00:58 +0300
commit2658e66cd1be5d07f6db6f0cfacf7c69cec580d9 (patch)
treecd583aaded0d9b9126f21e2d3c4c9cc56ddb7b3f /libavutil
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')
-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 |