summaryrefslogtreecommitdiffstats
path: root/dom/media/platforms/ffmpeg/FFmpegRuntimeLinker.cpp
diff options
context:
space:
mode:
authortrav90 <travawine@protonmail.ch>2018-04-28 14:00:09 -0500
committertrav90 <travawine@protonmail.ch>2018-04-28 14:20:52 -0500
commit29c293b100e046eaf82ceadbf676c0226b0e9e82 (patch)
tree43d8fb4d1c8a79952a6dbf1ed87be8e1cbbfc246 /dom/media/platforms/ffmpeg/FFmpegRuntimeLinker.cpp
parentb45f40ff9b410e919bb299cdf4da68acdb06ff2b (diff)
downloadUXP-29c293b100e046eaf82ceadbf676c0226b0e9e82.tar
UXP-29c293b100e046eaf82ceadbf676c0226b0e9e82.tar.gz
UXP-29c293b100e046eaf82ceadbf676c0226b0e9e82.tar.lz
UXP-29c293b100e046eaf82ceadbf676c0226b0e9e82.tar.xz
UXP-29c293b100e046eaf82ceadbf676c0226b0e9e82.zip
Add support for libavcodec 58/FFmpeg 4.0
Diffstat (limited to 'dom/media/platforms/ffmpeg/FFmpegRuntimeLinker.cpp')
-rw-r--r--dom/media/platforms/ffmpeg/FFmpegRuntimeLinker.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/dom/media/platforms/ffmpeg/FFmpegRuntimeLinker.cpp b/dom/media/platforms/ffmpeg/FFmpegRuntimeLinker.cpp
index fdbe77ef7..4671499e5 100644
--- a/dom/media/platforms/ffmpeg/FFmpegRuntimeLinker.cpp
+++ b/dom/media/platforms/ffmpeg/FFmpegRuntimeLinker.cpp
@@ -27,12 +27,15 @@ static FFmpegLibWrapper sLibAV;
static const char* sLibs[] = {
#if defined(XP_DARWIN)
+ "libavcodec.58.dylib",
"libavcodec.57.dylib",
"libavcodec.56.dylib",
"libavcodec.55.dylib",
"libavcodec.54.dylib",
"libavcodec.53.dylib",
#else
+ "libavcodec.so.58",
+ "libavcodec-ffmpeg.so.58",
"libavcodec-ffmpeg.so.57",
"libavcodec-ffmpeg.so.56",
"libavcodec.so.57",
@@ -134,6 +137,7 @@ FFmpegRuntimeLinker::CreateDecoderModule()
case 55:
case 56: module = FFmpegDecoderModule<55>::Create(&sLibAV); break;
case 57: module = FFmpegDecoderModule<57>::Create(&sLibAV); break;
+ case 58: module = FFmpegDecoderModule<58>::Create(&sLibAV); break;
default: module = nullptr;
}
return module.forget();