mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
This loader supports whatever format libavformat and libavcodec can handle. Currently only seekable streams are supported, and we still have some limitations as to the number of channels and sample format. Plays all non-streaming audio files at: https://tools.woolyss.com/html5-audio-video-tester/
12 lines
361 B
CMake
12 lines
361 B
CMake
include_guard()
|
|
|
|
find_package(PkgConfig REQUIRED)
|
|
pkg_check_modules(AVCODEC IMPORTED_TARGET libavcodec)
|
|
pkg_check_modules(AVFORMAT IMPORTED_TARGET libavformat)
|
|
pkg_check_modules(AVUTIL IMPORTED_TARGET libavutil)
|
|
|
|
if (AVCODEC_FOUND AND AVFORMAT_FOUND AND AVUTIL_FOUND)
|
|
set(HAS_FFMPEG ON CACHE BOOL "" FORCE)
|
|
add_compile_definitions(USE_FFMPEG=1)
|
|
endif()
|