Update multimedia/ffmpeg2 to 2.8.5. Changes: version 2.8.5 - avformat/hls: Even stricter URL checks - avformat/hls: More strict url checks - avcodec/pngenc: Fix mixed up linesizes - avcodec/pngenc: Replace memcpy by av_image_copy() - swscale/vscale: Check that 2 tap filters are bilinear before using bilinear code - swscale: Move VScalerContext into vscale.c - swscale/utils: Detect and skip unneeded sws_setColorspaceDetails() calls - swscale/yuv2rgb: Increase YUV2RGB table headroom - swscale/yuv2rgb: Factor YUVRGB_TABLE_LUMA_HEADROOM out - avformat/hls: forbid all protocols except http(s) & file - avformat/aviobuf: Fix end check in put_str16() - avformat/asfenc: Check pts - avcodec/mpeg4video: Check time_incr - avcodec/wavpackenc: Check the number of channels - avcodec/wavpackenc: Headers are per channel - avcodec/aacdec_template: Check id_map - avcodec/dvdec: Fix "left shift of negative value -254" - avcodec/g2meet: Check for ff_els_decode_bit() failure in epic_decode_run_length() - avcodec/mjpegdec: Fix negative shift - avcodec/mss2: Check for repeat overflow - avformat: Add integer fps from 31 to 60 to get_std_framerate() - avformat/ivfenc: fix division by zero - avcodec/mpegvideo_enc: Clip bits_per_raw_sample within valid range - avfilter/vf_scale: set proper out frame color range - avcodec/motion_est: Fix mv_penalty table size - avcodec/h264_slice: Fix integer overflow in implicit weight computation - swscale/utils: Use normal bilinear scaler if fast cannot be used due to tiny dimensions - avcodec/put_bits: Always check buffer end before writing - mjpegdec: extend check for incompatible values of s->rgb and s->ls - swscale/utils: Fix intermediate format for cascaded alpha downscaling - avformat/mov: Update handbrake_version threshold for full mp3 parsing - x86/float_dsp: zero extend offset from ff_scalarproduct_float_sse - avfilter/vf_zoompan: do not free frame we pushed to lavfi - nuv: sanitize negative fps rate - nutdec: reject negative value_len in read_sm_data - xwddec: prevent overflow of lsize * avctx->height - nutdec: only copy the header if it exists - exr: fix out of bounds read in get_code - on2avc: limit number of bits to 30 in get_egolombdiff -r1.23 -r1.24 pkgsrc/multimedia/ffmpeg2/Makefile
(leot)
@@ -1,17 +1,16 @@ | @@ -1,17 +1,16 @@ | |||
1 | # $NetBSD: Makefile,v 1.23 2016/01/03 11:35:21 wiz Exp $ | 1 | # $NetBSD: Makefile,v 1.24 2016/01/16 17:04:32 leot Exp $ | |
2 | 2 | |||
3 | PKGNAME= ${DISTNAME:S/ffmpeg/ffmpeg2/} | 3 | PKGNAME= ${DISTNAME:S/ffmpeg/ffmpeg2/} | |
4 | PKGREVISION= 1 | |||
5 | MAINTAINER= pkgsrc-users@NetBSD.org | 4 | MAINTAINER= pkgsrc-users@NetBSD.org | |
6 | HOMEPAGE= http://ffmpeg.mplayerhq.hu/ | 5 | HOMEPAGE= http://ffmpeg.mplayerhq.hu/ | |
7 | COMMENT= Decoding, encoding and streaming software (v2.x) | 6 | COMMENT= Decoding, encoding and streaming software (v2.x) | |
8 | 7 | |||
9 | CONFIGURE_ARGS+= --enable-avfilter | 8 | CONFIGURE_ARGS+= --enable-avfilter | |
10 | #CONFIGURE_ARGS+= --enable-avfilter-lavf | 9 | #CONFIGURE_ARGS+= --enable-avfilter-lavf | |
11 | CONFIGURE_ARGS+= --enable-postproc | 10 | CONFIGURE_ARGS+= --enable-postproc | |
12 | CONFIGURE_ARGS+= --disable-ffplay | 11 | CONFIGURE_ARGS+= --disable-ffplay | |
13 | 12 | |||
14 | INSTALLATION_DIRS= lib/ffmpeg2 share/doc/ffmpeg2 share/examples/ffmpeg2 | 13 | INSTALLATION_DIRS= lib/ffmpeg2 share/doc/ffmpeg2 share/examples/ffmpeg2 | |
15 | 14 | |||
16 | CONF_FILES+= ${PREFIX}/share/examples/ffmpeg2/ffserver.conf \ | 15 | CONF_FILES+= ${PREFIX}/share/examples/ffmpeg2/ffserver.conf \ | |
17 | ${PKG_SYSCONFDIR}/ffserver.conf | 16 | ${PKG_SYSCONFDIR}/ffserver.conf |
@@ -1,18 +1,18 @@ | @@ -1,18 +1,18 @@ | |||
1 | # $NetBSD: Makefile.common,v 1.42 2015/12/28 11:44:46 adam Exp $ | 1 | # $NetBSD: Makefile.common,v 1.43 2016/01/16 17:04:32 leot Exp $ | |
2 | # used by multimedia/ffmpeg2/Makefile | 2 | # used by multimedia/ffmpeg2/Makefile | |
3 | # used by multimedia/ffplay2/Makefile | 3 | # used by multimedia/ffplay2/Makefile | |
4 | 4 | |||
5 | DISTNAME= ffmpeg-2.8.4 | 5 | DISTNAME= ffmpeg-2.8.5 | |
6 | CATEGORIES= multimedia | 6 | CATEGORIES= multimedia | |
7 | MASTER_SITES= http://www.ffmpeg.org/releases/ | 7 | MASTER_SITES= http://www.ffmpeg.org/releases/ | |
8 | EXTRACT_SUFX= .tar.xz | 8 | EXTRACT_SUFX= .tar.xz | |
9 | 9 | |||
10 | LICENSE= gnu-lgpl-v2.1 AND gnu-gpl-v2 | 10 | LICENSE= gnu-lgpl-v2.1 AND gnu-gpl-v2 | |
11 | 11 | |||
12 | PREV_PKGPATH= multimedia/ffmpeg-devel | 12 | PREV_PKGPATH= multimedia/ffmpeg-devel | |
13 | PATCHDIR= ${.CURDIR}/../../multimedia/ffmpeg2/patches | 13 | PATCHDIR= ${.CURDIR}/../../multimedia/ffmpeg2/patches | |
14 | 14 | |||
15 | USE_LANGUAGES= c99 | 15 | USE_LANGUAGES= c99 | |
16 | USE_LIBTOOL= yes | 16 | USE_LIBTOOL= yes | |
17 | USE_TOOLS+= gmake texi2html pod2man | 17 | USE_TOOLS+= gmake texi2html pod2man | |
18 | HAS_CONFIGURE= yes | 18 | HAS_CONFIGURE= yes |
@@ -1,13 +1,13 @@ | @@ -1,13 +1,13 @@ | |||
1 | $NetBSD: distinfo,v 1.44 2015/12/28 11:44:46 adam Exp $ | 1 | $NetBSD: distinfo,v 1.45 2016/01/16 17:04:32 leot Exp $ | |
2 | 2 | |||
3 | SHA1 (ffmpeg-2.8.4.tar.xz) = 5c1d76f503c76c9a1f497656a8248e1354b2e15a | 3 | SHA1 (ffmpeg-2.8.5.tar.xz) = 5f46c7e1d80f37e41f69f5eadbdd6f97f56eca39 | |
4 | RMD160 (ffmpeg-2.8.4.tar.xz) = 0757a4a12f4fe2996e8be2c917f25075c879c00e | 4 | RMD160 (ffmpeg-2.8.5.tar.xz) = 64433cf03b24568ea58418b4d3f50d3dca08e0ad | |
5 | SHA512 (ffmpeg-2.8.4.tar.xz) = 3167d5758843afc198ecebb9c4c13543a1a224ef63695d9f1cbba1cd7ff043024eb5d844474052f46d9319a7261ec0514a1f139919263b5ef47f4fd54c3bf4cb | 5 | SHA512 (ffmpeg-2.8.5.tar.xz) = c1b79f905559b0d134d213c3c06289def162fe5fdda964e7192a1b7bccd539353b7515e9a6dfff1c5a7c64620216f61cd63ca89bd76ec9950b5aac97a44660f8 | |
6 | Size (ffmpeg-2.8.4.tar.xz) = 7197652 bytes | 6 | Size (ffmpeg-2.8.5.tar.xz) = 7201100 bytes | |
7 | SHA1 (patch-Makefile) = ff8a7a5fdfd4987ef2835bd7360a78efd4310253 | 7 | SHA1 (patch-Makefile) = e3cb5cedccd2840f36ab90cd2f4b7987e1098a56 | |
8 | SHA1 (patch-configure) = bc0dcdb5605b5a112de556ecb466265ef8ff5ca9 | 8 | SHA1 (patch-configure) = c739d4f002b0ed1850f88b5a961672b5e93f1dc1 | |
9 | SHA1 (patch-libavcodec_x86_ac3dsp_init.c) = f997271f4f4604987591d7f17c571aaaa8a6188a | 9 | SHA1 (patch-libavcodec_x86_ac3dsp__init.c) = 268dc75dfe3b907feb8ad730bcdd1d4556be664a | |
10 | SHA1 (patch-libavutil_common.h) = ebbd0c169f228af37ae2dd54b27d5dba11a34c5e | 10 | SHA1 (patch-libavutil_common.h) = de36efed3a8a2069e170e5afe77eb122a46d14b2 | |
11 | SHA1 (patch-libavutil_opencl.c) = 2404f98c677c9fe92bcc49be01ebf76bebba0eea | 11 | SHA1 (patch-libavutil_opencl.c) = 00ea04f9febe60b9428ac8c3b7e14ae01a955685 | |
12 | SHA1 (patch-libavutil_x86_asm.h) = 3fe732ec6da9f0920d3c6e3a5db9bed65b0a3e40 | 12 | SHA1 (patch-libavutil_x86_asm.h) = 85c5403e97449639253d3c97391dfbb4cadb2548 | |
13 | SHA1 (patch-libavutil_x86_cpu.c) = ece66a5b22130754c11c643dae48171d04d3246f | 13 | SHA1 (patch-libavutil_x86_cpu.c) = 499b0fc3081971a2bba2724bd051aab14c531239 |
@@ -1,15 +1,15 @@ | @@ -1,15 +1,15 @@ | |||
1 | $NetBSD: patch-Makefile,v 1.1 2013/08/04 10:29:02 adam Exp $ | 1 | $NetBSD: patch-Makefile,v 1.2 2016/01/16 17:04:33 leot Exp $ | |
2 | 2 | |||
3 | --- Makefile.orig 2012-09-28 01:37:35.000000000 +0000 | 3 | --- Makefile.orig 2016-01-15 16:58:32.000000000 +0000 | |
4 | +++ Makefile | 4 | +++ Makefile | |
5 | @@ -139,8 +139,8 @@ install-progs: install-progs-yes $(PROGS | 5 | @@ -159,8 +159,8 @@ install-progs: install-progs-yes $(AVPRO | |
6 | 6 | |||
7 | install-data: $(DATA_FILES) $(EXAMPLES_FILES) | 7 | install-data: $(DATA_FILES) $(EXAMPLES_FILES) | |
8 | $(Q)mkdir -p "$(DATADIR)/examples" | 8 | $(Q)mkdir -p "$(DATADIR)/examples" | |
9 | - $(INSTALL) -m 644 $(DATA_FILES) "$(DATADIR)" | 9 | - $(INSTALL) -m 644 $(DATA_FILES) "$(DATADIR)" | |
10 | - $(INSTALL) -m 644 $(EXAMPLES_FILES) "$(DATADIR)/examples" | 10 | - $(INSTALL) -m 644 $(EXAMPLES_FILES) "$(DATADIR)/examples" | |
11 | + $(INSTALL) -c -m 644 $(DATA_FILES) "$(DATADIR)" | 11 | + $(INSTALL) -c -m 644 $(DATA_FILES) "$(DATADIR)" | |
12 | + $(INSTALL) -c -m 644 $(EXAMPLES_FILES) "$(DATADIR)/examples" | 12 | + $(INSTALL) -c -m 644 $(EXAMPLES_FILES) "$(DATADIR)/examples" | |
13 | 13 | |||
14 | uninstall: uninstall-libs uninstall-headers uninstall-progs uninstall-data | 14 | uninstall: uninstall-libs uninstall-headers uninstall-progs uninstall-data | |
15 | 15 |
@@ -1,18 +1,18 @@ | @@ -1,18 +1,18 @@ | |||
1 | $NetBSD: patch-libavutil_common.h,v 1.1 2013/08/04 10:29:02 adam Exp $ | 1 | $NetBSD: patch-libavutil_common.h,v 1.2 2016/01/16 17:04:33 leot Exp $ | |
2 | 2 | |||
3 | --- libavutil/common.h.orig 2013-01-06 21:53:29.000000000 +0000 | 3 | --- libavutil/common.h.orig 2016-01-15 16:58:36.000000000 +0000 | |
4 | +++ libavutil/common.h | 4 | +++ libavutil/common.h | |
5 | @@ -39,6 +39,22 @@ | 5 | @@ -43,6 +43,22 @@ | |
6 | #include "version.h" | 6 | #include "version.h" | |
7 | #include "libavutil/avconfig.h" | 7 | #include "libavutil/avconfig.h" | |
8 | 8 | |||
9 | +#if defined(__cplusplus) | 9 | +#if defined(__cplusplus) | |
10 | +#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__linux__) | 10 | +#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__linux__) | |
11 | +#undef _STDINT_H_ | 11 | +#undef _STDINT_H_ | |
12 | +#undef _SYS_STDINT_H_ | 12 | +#undef _SYS_STDINT_H_ | |
13 | +#undef _STDINT_H | 13 | +#undef _STDINT_H | |
14 | +#undef _GCC_WRAP_STDINT_H | 14 | +#undef _GCC_WRAP_STDINT_H | |
15 | +#ifndef __STDC_CONSTANT_MACROS | 15 | +#ifndef __STDC_CONSTANT_MACROS | |
16 | +#define __STDC_CONSTANT_MACROS | 16 | +#define __STDC_CONSTANT_MACROS | |
17 | +#endif | 17 | +#endif | |
18 | +#include <stdint.h> | 18 | +#include <stdint.h> |
@@ -1,18 +1,18 @@ | @@ -1,18 +1,18 @@ | |||
1 | $NetBSD: patch-libavutil_x86_asm.h,v 1.1 2014/08/30 11:22:03 richard Exp $ | 1 | $NetBSD: patch-libavutil_x86_asm.h,v 1.2 2016/01/16 17:04:33 leot Exp $ | |
2 | 2 | |||
3 | avoid SunOS regset.h definition for REG_SP | 3 | avoid SunOS regset.h definition for REG_SP | |
4 | 4 | |||
5 | --- libavutil/x86/asm.h.orig 2014-08-17 13:33:17.000000000 +0000 | 5 | --- libavutil/x86/asm.h.orig 2016-01-15 16:58:37.000000000 +0000 | |
6 | +++ libavutil/x86/asm.h | 6 | +++ libavutil/x86/asm.h | |
7 | @@ -27,6 +27,11 @@ | 7 | @@ -27,6 +27,11 @@ | |
8 | typedef struct xmm_reg { uint64_t a, b; } xmm_reg; | 8 | typedef struct xmm_reg { uint64_t a, b; } xmm_reg; | |
9 | typedef struct ymm_reg { uint64_t a, b, c, d; } ymm_reg; | 9 | typedef struct ymm_reg { uint64_t a, b, c, d; } ymm_reg; | |
10 | 10 | |||
11 | +/* avoid SunOS regset.h definition for REG_SP */ | 11 | +/* avoid SunOS regset.h definition for REG_SP */ | |
12 | +#if defined (__sun) && defined (REG_SP) | 12 | +#if defined (__sun) && defined (REG_SP) | |
13 | +#undef REG_SP | 13 | +#undef REG_SP | |
14 | +#endif | 14 | +#endif | |
15 | + | 15 | + | |
16 | #if ARCH_X86_64 | 16 | #if ARCH_X86_64 | |
17 | # define OPSIZE "q" | 17 | # define OPSIZE "q" | |
18 | # define REG_a "rax" | 18 | # define REG_a "rax" |
@@ -1,58 +1,58 @@ | @@ -1,58 +1,58 @@ | |||
1 | $NetBSD: patch-configure,v 1.8 2015/06/29 13:12:27 adam Exp $ | 1 | $NetBSD: patch-configure,v 1.9 2016/01/16 17:04:33 leot Exp $ | |
2 | 2 | |||
3 | --- configure.orig 2015-06-19 20:47:55.000000000 +0000 | 3 | --- configure.orig 2016-01-15 16:59:29.000000000 +0000 | |
4 | +++ configure | 4 | +++ configure | |
5 | @@ -4197,6 +4197,11 @@ case $target_os in | 5 | @@ -4300,6 +4300,11 @@ case $target_os in | |
6 | ;; | 6 | ;; | |
7 | netbsd) | 7 | netbsd) | |
8 | disable symver | 8 | disable symver | |
9 | + # NetBSD/macppc *really* needs PIC enabled. ffmpeg has repeatedly | 9 | + # NetBSD/macppc *really* needs PIC enabled. ffmpeg has repeatedly | |
10 | + # broken time and time again because PIC support has been removed | 10 | + # broken time and time again because PIC support has been removed | |
11 | + # from architectures that need it. So, if you touch this, please | 11 | + # from architectures that need it. So, if you touch this, please | |
12 | + # be careful and make sure that your changes work. | 12 | + # be careful and make sure that your changes work. | |
13 | + test "${subarch}" != "x86_32" && enable pic | 13 | + test "${subarch}" != "x86_32" && enable pic | |
14 | oss_indev_extralibs="-lossaudio" | 14 | oss_indev_extralibs="-lossaudio" | |
15 | oss_outdev_extralibs="-lossaudio" | 15 | oss_outdev_extralibs="-lossaudio" | |
16 | enabled gcc || check_ldflags -Wl,-zmuldefs | 16 | enabled gcc || check_ldflags -Wl,-zmuldefs | |
17 | @@ -4602,10 +4607,13 @@ check_cc <<EOF && enable attribute_may_a | 17 | @@ -4718,10 +4723,13 @@ check_cc <<EOF && enable attribute_may_a | |
18 | union { int x; } __attribute__((may_alias)) x; | 18 | union { int x; } __attribute__((may_alias)) x; | |
19 | EOF | 19 | EOF | |
20 | 20 | |||
21 | -check_cc <<EOF || die "endian test failed" | 21 | -check_cc <<EOF || die "endian test failed" | |
22 | -unsigned int endian = 'B' << 24 | 'I' << 16 | 'G' << 8 | 'E'; | 22 | -unsigned int endian = 'B' << 24 | 'I' << 16 | 'G' << 8 | 'E'; | |
23 | +check_exec <<EOF || enable bigendian | 23 | +check_exec <<EOF || enable bigendian | |
24 | +int main() | 24 | +int main() | |
25 | +{ | 25 | +{ | |
26 | + long one = 1; | 26 | + long one = 1; | |
27 | + return !(*((char *)(&one))); | 27 | + return !(*((char *)(&one))); | |
28 | +} | 28 | +} | |
29 | EOF | 29 | EOF | |
30 | -od -t x1 $TMPO | grep -q '42 *49 *47 *45' && enable bigendian | 30 | -od -t x1 $TMPO | grep -q '42 *49 *47 *45' && enable bigendian | |
31 | 31 | |||
32 | if ! enabled ppc64 || enabled bigendian; then | 32 | if ! enabled ppc64 || enabled bigendian; then | |
33 | disable vsx | 33 | disable vsx | |
34 | @@ -5426,6 +5434,7 @@ enabled xmm_clobber_test && | 34 | @@ -5589,6 +5597,7 @@ enabled xmm_clobber_test && | |
35 | -Wl,--wrap,sws_scale || | 35 | -Wl,--wrap,sws_scale || | |
36 | disable xmm_clobber_test | 36 | disable xmm_clobber_test | |
37 | 37 | |||
38 | +if false; then | 38 | +if false; then | |
39 | echo "X{};" > $TMPV | 39 | echo "X{};" > $TMPV | |
40 | if test_ldflags -Wl,--version-script,$TMPV; then | 40 | if test_ldflags -Wl,--version-script,$TMPV; then | |
41 | append SHFLAGS '-Wl,--version-script,\$(SUBDIR)lib\$(NAME).ver' | 41 | append SHFLAGS '-Wl,--version-script,\$(SUBDIR)lib\$(NAME).ver' | |
42 | @@ -5438,6 +5447,7 @@ __asm__(".symver ff_foo,av_foo@VERSION") | 42 | @@ -5601,6 +5610,7 @@ __asm__(".symver ff_foo,av_foo@VERSION") | |
43 | void ff_foo(void) {} | 43 | void ff_foo(void) {} | |
44 | EOF | 44 | EOF | |
45 | fi | 45 | fi | |
46 | +fi | 46 | +fi | |
47 | 47 | |||
48 | if [ -z "$optflags" ]; then | 48 | if [ -z "$optflags" ]; then | |
49 | if enabled small; then | 49 | if enabled small; then | |
50 | @@ -6041,7 +6051,7 @@ Version: $version | 50 | @@ -6233,7 +6243,7 @@ Version: $version | |
51 | Requires: $(enabled shared || echo $requires) | 51 | Requires: $(enabled shared || echo $requires) | |
52 | Requires.private: $(enabled shared && echo $requires) | 52 | Requires.private: $(enabled shared && echo $requires) | |
53 | Conflicts: | 53 | Conflicts: | |
54 | -Libs: -L\${libdir} $(enabled rpath && echo "-Wl,-rpath,\${libdir}") -l${shortname} $(enabled shared || echo $libs) | 54 | -Libs: -L\${libdir} $(enabled rpath && echo "-Wl,-rpath,\${libdir}") -l${shortname} $(enabled shared || echo $libs) | |
55 | +Libs: -L\${libdir} -Wl,-R\${libdir} $(enabled rpath && echo "-Wl,-rpath,\${libdir}") -l${shortname} $(enabled shared || echo $libs) | 55 | +Libs: -L\${libdir} -Wl,-R\${libdir} $(enabled rpath && echo "-Wl,-rpath,\${libdir}") -l${shortname} $(enabled shared || echo $libs) | |
56 | Libs.private: $(enabled shared && echo $libs) | 56 | Libs.private: $(enabled shared && echo $libs) | |
57 | Cflags: -I\${includedir} | 57 | Cflags: -I\${includedir} | |
58 | EOF | 58 | EOF |
@@ -1,15 +1,15 @@ | @@ -1,15 +1,15 @@ | |||
1 | $NetBSD: patch-libavutil_opencl.c,v 1.2 2015/04/02 22:40:04 wiz Exp $ | 1 | $NetBSD: patch-libavutil_opencl.c,v 1.3 2016/01/16 17:04:33 leot Exp $ | |
2 | 2 | |||
3 | Fix undeclared identifier error. | 3 | Fix undeclared identifier error. | |
4 | 4 | |||
5 | --- libavutil/opencl.c.orig 2015-03-16 19:26:04.000000000 +0000 | 5 | --- libavutil/opencl.c.orig 2016-01-15 16:58:37.000000000 +0000 | |
6 | +++ libavutil/opencl.c | 6 | +++ libavutil/opencl.c | |
7 | @@ -423,7 +423,7 @@ cl_program av_opencl_compile(const char | 7 | @@ -457,7 +457,7 @@ cl_program av_opencl_compile(const char | |
8 | cl_program program = NULL; | 8 | cl_program program = NULL; | |
9 | 9 | |||
10 | LOCK_OPENCL; | 10 | LOCK_OPENCL; | |
11 | - for (i = 0; i < opencl_ctx.kernel_code_count; i++) { | 11 | - for (i = 0; i < opencl_ctx.kernel_code_count; i++) { | |
12 | + for (int i = 0; i < opencl_ctx.kernel_code_count; i++) { | 12 | + for (int i = 0; i < opencl_ctx.kernel_code_count; i++) { | |
13 | // identify a program using a unique name within the kernel source | 13 | // identify a program using a unique name within the kernel source | |
14 | ptr = av_stristr(opencl_ctx.kernel_code[i].kernel_string, program_name); | 14 | ptr = av_stristr(opencl_ctx.kernel_code[i].kernel_string, program_name); | |
15 | if (ptr && !opencl_ctx.kernel_code[i].is_compiled) { | 15 | if (ptr && !opencl_ctx.kernel_code[i].is_compiled) { |
@@ -1,16 +1,16 @@ | @@ -1,16 +1,16 @@ | |||
1 | $NetBSD: patch-libavutil_x86_cpu.c,v 1.3 2014/04/01 10:51:49 adam Exp $ | 1 | $NetBSD: patch-libavutil_x86_cpu.c,v 1.4 2016/01/16 17:04:33 leot Exp $ | |
2 | 2 | |||
3 | --- libavutil/x86/cpu.c.orig 2014-03-23 22:07:55.000000000 +0000 | 3 | --- libavutil/x86/cpu.c.orig 2016-01-15 16:58:37.000000000 +0000 | |
4 | +++ libavutil/x86/cpu.c | 4 | +++ libavutil/x86/cpu.c | |
5 | @@ -116,6 +116,7 @@ int ff_get_cpu_flags_x86(void) | 5 | @@ -116,6 +116,7 @@ int ff_get_cpu_flags_x86(void) | |
6 | #if HAVE_SSE | 6 | #if HAVE_SSE | |
7 | if (std_caps & (1 << 25)) | 7 | if (std_caps & (1 << 25)) | |
8 | rval |= AV_CPU_FLAG_SSE; | 8 | rval |= AV_CPU_FLAG_SSE; | |
9 | +#if !defined(__GNUC__) || (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 2)) | 9 | +#if !defined(__GNUC__) || (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 2)) | |
10 | if (std_caps & (1 << 26)) | 10 | if (std_caps & (1 << 26)) | |
11 | rval |= AV_CPU_FLAG_SSE2; | 11 | rval |= AV_CPU_FLAG_SSE2; | |
12 | if (ecx & 1) | 12 | if (ecx & 1) | |
13 | @@ -138,6 +139,7 @@ int ff_get_cpu_flags_x86(void) | 13 | @@ -138,6 +139,7 @@ int ff_get_cpu_flags_x86(void) | |
14 | } | 14 | } | |
15 | } | 15 | } | |
16 | #endif /* HAVE_AVX */ | 16 | #endif /* HAVE_AVX */ |