vcpkg/ports/ffmpeg/0019-libx264-Do-not-explicitly-set-X264_API_IMPORTS.patch
Matthew Oliver 0f719b3fdf
[ffmpeg] Update to 5.0 (#23312)
* [ffmpeg] Update to 5.0

* update versions

* Fix after merge.

* ffmpeg: Fix lzma debug lib naming.

* Update ffmpeg.json

* Update ffmpeg.json

* Update ffmpeg.json

* fixup versions.

* fixup

* version fixup

* Update ffmpeg.json

* [ffmpeg] Disable autodetect.

* [ffmpeg] Update version.

* [ffmpeg] fixup autodetect on linux/uwp.

* Update ffmpeg.json

* [avcpp] Update to 2.1.0.

* [pangolin] Update to 0.8.

* Update versions.

* [pangolin] Fixup port file.

* Update pangolin.json

* [aubio] Update to latest git master.

* Update pangolin.json

* [avcpp] Add license field.

* [avcpp] Fix pkgconf detection of ffmpeg.

* [ignition-cmake] Update to 2.16.0.

* [ignition-math6] Update to 6.13.0.

* [ignition-common3] Update to 3.14.1.

* [avcpp] Reformat.

* Update versions.

* [avcpp] Fix pkgconfig cross compile.

* [discordcoreapi] Disable on uwp.

* Update versions

* [aubio] Fix deprecated portfile functions.

* Update versions.

* [ffmpeg] Fix amf/mfx feature.

* [ignition-math6] Require python 3.10.

* Update versions.

* fixup

* [ignition-math6] Change version to last known good 6.9.2.

* [discordcoreapi] Properly Fix.

* Update versions.

* Update versions.

* Update ffmpeg.json

* Update ffmpeg.json
2023-01-03 10:32:17 -08:00

47 lines
2.1 KiB
Diff

From d5fca748d76602a912590b64022560283db6fae6 Mon Sep 17 00:00:00 2001
From: Matt Oliver <protogonoi@gmail.com>
Date: Sat, 30 Oct 2021 14:09:29 +1100
Subject: [PATCH] libx264: Do not explicitly set X264_API_IMPORTS
---
configure | 8 +++-----
libavcodec/libx264.c | 4 ----
2 files changed, 3 insertions(+), 9 deletions(-)
diff --git a/configure b/configure
index ede8f9777b..b35728aace 100755
--- a/configure
+++ b/configure
@@ -6535,11 +6535,8 @@ enabled libvpx && {
enabled libwebp && {
enabled libwebp_encoder && require_pkg_config libwebp "libwebp >= 0.2.0" webp/encode.h WebPGetEncoderVersion
enabled libwebp_anim_encoder && check_pkg_config libwebp_anim_encoder "libwebpmux >= 0.4.0" webp/mux.h WebPAnimEncoderOptionsInit; }
-enabled libx264 && { check_pkg_config libx264 x264 "stdint.h x264.h" x264_encoder_encode ||
- { require libx264 "stdint.h x264.h" x264_encoder_encode "-lx264 $pthreads_extralibs $libm_extralibs" &&
- warn "using libx264 without pkg-config"; } } &&
- require_cpp_condition libx264 x264.h "X264_BUILD >= 118" &&
- check_cpp_condition libx262 x264.h "X264_MPEG2"
+enabled libx264 && check_pkg_config libx264 x264 "stdint.h x264.h" x264_encoder_encode &&
+ require_cpp_condition libx264 x264.h "X264_BUILD >= 158"
enabled libx265 && { check_pkg_config libx265 x265 x265.h x265_api_get ||
{ { check_lib libx265 x265.h x265_api_get "-lx265 $pthreads_extralibs $libm_extralibs -ldl -lstdc++ -lgcc_s -lgcc -lrt -lnuma" ||
require libx265 x265.h x265_api_get "-lx265 $pthreads_extralibs $libm_extralibs -ldl -lstdc++"; } &&
diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c
index 21f434d06d..efbc9608c7 100644
--- a/libavcodec/libx264.c
+++ b/libavcodec/libx264.c
@@ -34,10 +34,6 @@
#include "atsc_a53.h"
#include "sei.h"
-#if defined(_MSC_VER)
-#define X264_API_IMPORTS 1
-#endif
-
#include <x264.h>
#include <float.h>
#include <math.h>
--
2.33.1.windows.1