mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-07 01:56:38 +00:00
LibMedia: Link to avformat as well
This allows us to process container formats in future commits.
This commit is contained in:
parent
3bf910706f
commit
1b267abf36
Notes:
github-actions[bot]
2024-09-12 08:02:21 +00:00
Author: https://github.com/gmta
Commit: 1b267abf36
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1369
4 changed files with 23 additions and 11 deletions
13
Meta/CMake/ffmpeg.cmake
Normal file
13
Meta/CMake/ffmpeg.cmake
Normal file
|
@ -0,0 +1,13 @@
|
|||
include_guard()
|
||||
|
||||
find_package(PkgConfig REQUIRED)
|
||||
pkg_check_modules(AVCODEC IMPORTED_TARGET libavcodec)
|
||||
pkg_check_modules(AVFORMAT IMPORTED_TARGET libavformat)
|
||||
|
||||
if (AVCODEC_FOUND AND AVFORMAT_FOUND)
|
||||
set(HAS_FFMPEG ON CACHE BOOL "" FORCE)
|
||||
add_compile_definitions(USE_FFMPEG=1)
|
||||
if (AVCODEC_VERSION VERSION_GREATER_EQUAL "59.24.100")
|
||||
add_compile_definitions(USE_FFMPEG_CH_LAYOUT=1)
|
||||
endif()
|
||||
endif()
|
Loading…
Add table
Add a link
Reference in a new issue