47 lines
2.2 KiB
Diff
Executable File
47 lines
2.2 KiB
Diff
Executable File
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 -ldl" &&
|
|
- 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 "packet_internal.h"
|
|
#include "atsc_a53.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
|
|
|