summaryrefslogtreecommitdiff
path: root/multimedia/ffmpeg1/patches/patch-aa
diff options
context:
space:
mode:
authorwiz <wiz>2014-08-11 23:01:50 +0000
committerwiz <wiz>2014-08-11 23:01:50 +0000
commit8fdebb315dc61958b3de1c08900aadc500ff7e7d (patch)
tree6affee79b354622295c24f5e241da1290601c51f /multimedia/ffmpeg1/patches/patch-aa
parent69537f90911ec45fed1efeeab9b1864b62d5b100 (diff)
downloadpkgsrc-8fdebb315dc61958b3de1c08900aadc500ff7e7d.tar.gz
Import ffmpeg1-1.2.7 as multimedia/ffmpeg1.
FFmpeg is a complete, cross-platform solution to record, convert and stream audio and video. It includes libavcodec - the leading audio/video codec library. This package contains major version 1.
Diffstat (limited to 'multimedia/ffmpeg1/patches/patch-aa')
-rw-r--r--multimedia/ffmpeg1/patches/patch-aa20
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 */
+ }
+