diff options
Diffstat (limited to 'multimedia/ffmpeg1/patches/patch-aa')
-rw-r--r-- | multimedia/ffmpeg1/patches/patch-aa | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/multimedia/ffmpeg1/patches/patch-aa b/multimedia/ffmpeg1/patches/patch-aa new file mode 100644 index 00000000000..093130a8d15 --- /dev/null +++ b/multimedia/ffmpeg1/patches/patch-aa @@ -0,0 +1,20 @@ +$NetBSD: patch-aa,v 1.1 2014/08/11 23:01:50 wiz Exp $ + +--- libavutil/x86/cpu.c.orig 2013-01-06 21:53:29.000000000 +0000 ++++ libavutil/x86/cpu.c +@@ -115,6 +115,7 @@ int ff_get_cpu_flags_x86(void) + #if HAVE_SSE + if (std_caps & (1 << 25)) + rval |= AV_CPU_FLAG_SSE; ++#if !defined(__GNUC__) || (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 2)) + if (std_caps & (1 << 26)) + rval |= AV_CPU_FLAG_SSE2; + if (ecx & 1) +@@ -134,6 +135,7 @@ int ff_get_cpu_flags_x86(void) + rval |= AV_CPU_FLAG_AVX; + } + #endif /* HAVE_AVX */ ++#endif /* gcc >= 4.2 */ + #endif /* HAVE_SSE */ + } + |