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 <rkitover@gmail.com>
This commit is contained in:
Rafael Kitover 2020-10-13 12:51:26 +00:00
parent a078dd2487
commit e1fd75629f
No known key found for this signature in database
GPG Key ID: 08AB596679D86240
1 changed files with 3 additions and 1 deletions

View File

@ -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(