pkgsrc/multimedia/ffmpeg1/patches/patch-aa
wiz 064d9b5086 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.
2014-08-11 23:01:50 +00:00

20 lines
646 B
Text

$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 */
}