ffmpeg support on linux, and check compiled vs. runtime versions of ffmpeg

This commit is contained in:
2026-04-28 15:03:03 +02:00
parent 569ba05514
commit d81a4b7417
9 changed files with 289 additions and 35 deletions
+2
View File
@@ -21,6 +21,8 @@ if(WIN32)
target_link_directories(ffmpeg_audio PRIVATE ${FFMPEG_LIB})
set(FFMPEG_LIBRARIES avcodec.lib avformat.lib swresample.lib avutil.lib avdevice.lib avfilter.lib swscale.lib)
target_link_directories(demo_ffmpeg_audio PRIVATE ${FFMPEG_LIB})
else()
set(FFMPEG_LIBRARIES avcodec avformat swresample avutil avdevice avfilter swscale)
endif()
target_link_libraries(ffmpeg_audio PRIVATE ${FFMPEG_LIBRARIES})