From e1fd75629f36f7eeadf0cf48ca5d73c2b2e64c6c Mon Sep 17 00:00:00 2001 From: Rafael Kitover Date: Tue, 13 Oct 2020 12:51:26 +0000 Subject: [PATCH] Link Windows Media Foundation libs with ffmpeg. Link some Media Foundation libs required by newer versions of FFmpeg on Windows. Signed-off-by: Rafael Kitover --- src/wx/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/wx/CMakeLists.txt b/src/wx/CMakeLists.txt index 59d13aa6..36b7085b 100644 --- a/src/wx/CMakeLists.txt +++ b/src/wx/CMakeLists.txt @@ -943,9 +943,11 @@ target_link_libraries( ${VBAM_LIBS} ) +set(WIN32_MEDIA_FOUNDATION_LIBS dxva2 evr mf mfplat mfplay mfreadwrite mfuuid amstrmid) + if(ENABLE_FFMPEG) if(WIN32) - list(APPEND FFMPEG_LIBRARIES secur32 bcrypt) + list(APPEND FFMPEG_LIBRARIES secur32 bcrypt ${WIN32_MEDIA_FOUNDATION_LIBS}) endif() target_link_libraries(