Support openh264 codec on MacOS

This commit is contained in:
dijunkun
2023-12-01 16:53:21 +08:00
parent 3eef1f8d84
commit f99a9bea13
5 changed files with 308 additions and 199 deletions

View File

@@ -45,7 +45,7 @@ package("ffmpeg")
add_configs("libopenh264", {description = "Enable libopenh264", default = false, type = "boolean"})
end
add_links("avfilter", "avdevice", "avformat", "avcodec", "swscale", "swresample", "avutil")
add_links("avfilter", "avdevice", "avformat", "avcodec", "swscale", "swresample", "avutil", "postproc")
if is_plat("macosx") then
add_frameworks("CoreFoundation", "Foundation", "CoreVideo", "CoreMedia", "AudioToolbox", "VideoToolbox", "Security")
elseif is_plat("linux") then