mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-21 06:23:06 +08:00
5d7ad6b5ae
* Update ffmpeg to 4.4.3 - Backport fix for h.264 hardware decoding on M1 macs - ffmpeg links against built-in atomic, not a findable lib * add missing extension for new patch * version! Co-authored-by: Martijn Otto <martijn@resolume.com> Co-authored-by: Javier Matos Denizac <javier.matosd@gmail.com>
17 lines
1.3 KiB
Diff
17 lines
1.3 KiB
Diff
diff --git a/configure b/configure
|
|
index d8f059f..f3688ad 100755
|
|
--- a/configure
|
|
+++ b/configure
|
|
@@ -6501,7 +6501,10 @@ enabled libx264 && { check_pkg_config libx264 x264 "stdint.h x264.h" x
|
|
warn "using libx264 without pkg-config"; } } &&
|
|
require_cpp_condition libx264 x264.h "X264_BUILD >= 118" &&
|
|
check_cpp_condition libx262 x264.h "X264_MPEG2"
|
|
-enabled libx265 && require_pkg_config libx265 x265 x265.h x265_api_get &&
|
|
+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++"; } &&
|
|
+ warn "using libx265 without pkg-config"; } } &&
|
|
require_cpp_condition libx265 x265.h "X265_BUILD >= 70"
|
|
enabled libxavs && require libxavs "stdint.h xavs.h" xavs_encoder_encode "-lxavs $pthreads_extralibs $libm_extralibs"
|
|
enabled libxavs2 && require_pkg_config libxavs2 "xavs2 >= 1.3.0" "stdint.h xavs2.h" xavs2_api_get
|