[FFmpeg-cvslog] lavu/cpu: disable MMX warning on non x86 platforms
Clément Bœsch
git at videolan.org
Thu Jun 29 19:01:24 EEST 2017
ffmpeg | branch: master | Clément Bœsch <u at pkh.me> | Wed Jun 28 15:20:45 2017 +0200| [2658e66cd1be5d07f6db6f0cfacf7c69cec580d9] | committer: Clément Bœsch
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.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2658e66cd1be5d07f6db6f0cfacf7c69cec580d9
---
libavutil/cpu.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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 |
More information about the ffmpeg-cvslog
mailing list