2021-11-04 13:07:18 +08:00
|
|
|
diff --git a/configure b/configure
|
2022-11-15 06:29:28 +08:00
|
|
|
index 62753ef..018764e 100755
|
2021-11-04 13:07:18 +08:00
|
|
|
--- a/configure
|
|
|
|
+++ b/configure
|
2022-11-15 06:29:28 +08:00
|
|
|
@@ -6508,11 +6508,8 @@ enabled libvpx && {
|
2021-11-04 13:07:18 +08:00
|
|
|
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 &&
|
2021-12-07 13:27:58 +08:00
|
|
|
+ require_cpp_condition libx264 x264.h "X264_BUILD >= 158"
|
2021-11-04 13:07:18 +08:00
|
|
|
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
|
2022-11-15 06:29:28 +08:00
|
|
|
index 4ddc497..0152d30 100644
|
2021-11-04 13:07:18 +08:00
|
|
|
--- a/libavcodec/libx264.c
|
|
|
|
+++ b/libavcodec/libx264.c
|
2022-11-15 06:29:28 +08:00
|
|
|
@@ -32,10 +32,6 @@
|
2021-11-04 13:07:18 +08:00
|
|
|
#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>
|