diff options
Diffstat (limited to 'multimedia/ffmpeg010/patches/patch-aa')
-rw-r--r-- | multimedia/ffmpeg010/patches/patch-aa | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/multimedia/ffmpeg010/patches/patch-aa b/multimedia/ffmpeg010/patches/patch-aa new file mode 100644 index 00000000000..8732fce9862 --- /dev/null +++ b/multimedia/ffmpeg010/patches/patch-aa @@ -0,0 +1,20 @@ +$NetBSD: patch-aa,v 1.1 2012/09/14 14:52:35 drochner Exp $ + +--- libavutil/x86/cpu.c.orig 2011-07-07 20:46:02.000000000 +0000 ++++ libavutil/x86/cpu.c +@@ -86,6 +86,7 @@ int ff_get_cpu_flags_x86(void) + rval |= AV_CPU_FLAG_MMX2 + #if HAVE_SSE + | 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) +@@ -105,6 +106,7 @@ int ff_get_cpu_flags_x86(void) + rval |= AV_CPU_FLAG_AVX; + } + #endif ++#endif /* gcc >= 4.2 */ + #endif + ; + } |