Use swresample (part of FFmpeg) to de-planarize audio into format that

can be consumed by SDL
This commit is contained in:
Ivan Savenko
2024-10-01 15:38:15 +00:00
parent cef7466c71
commit e497a51373
2 changed files with 60 additions and 23 deletions
+1 -5
View File
@@ -486,11 +486,7 @@ if(NOT FORCE_BUNDLED_MINIZIP)
endif()
if (ENABLE_CLIENT)
set(FFMPEG_COMPONENTS avutil swscale avformat avcodec)
if(APPLE_IOS AND NOT USING_CONAN)
list(APPEND FFMPEG_COMPONENTS swresample)
endif()
find_package(ffmpeg COMPONENTS ${FFMPEG_COMPONENTS})
find_package(ffmpeg COMPONENTS avutil swscale avformat avcodec swresample)
find_package(SDL2 REQUIRED)
find_package(SDL2_image REQUIRED)