pkgsrc/multimedia/ffmpeg010/patches/patch-aa
ryoon 077adae558 Import ffmpeg010-20120609.0.10.4 as multimedia/ffmpeg010.
Re-import ffmpeg 0.10 branch.
Upcomming gstreamer1-1.0.3 will use this.

This package can co-exist with ffmpeg 1.0.
2012-11-28 15:50:03 +00:00

20 lines
636 B
Text

$NetBSD: patch-aa,v 1.3 2012/11/28 15:50:03 ryoon Exp $
--- libavutil/x86/cpu.c.orig 2012-06-09 20:09:44.000000000 +0000
+++ libavutil/x86/cpu.c
@@ -89,6 +89,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)
@@ -108,6 +109,7 @@ int ff_get_cpu_flags_x86(void)
rval |= AV_CPU_FLAG_AVX;
}
#endif
+#endif /* gcc >= 4.2 */
#endif
;
}