Bug 1107264 - Enable the use of FFmpeg on mac. r=k17e, a=sledru
--- a/dom/media/fmp4/ffmpeg/FFmpegRuntimeLinker.cpp
+++ b/dom/media/fmp4/ffmpeg/FFmpegRuntimeLinker.cpp
@@ -31,16 +31,20 @@ public:
static PlatformDecoderModule* Create();
};
static const AvFormatLib sLibs[] = {
{ "libavformat.so.56", FFmpegDecoderModule<55>::Create, 55 },
{ "libavformat.so.55", FFmpegDecoderModule<55>::Create, 55 },
{ "libavformat.so.54", FFmpegDecoderModule<54>::Create, 54 },
{ "libavformat.so.53", FFmpegDecoderModule<53>::Create, 53 },
+ { "libavformat.56.dylib", FFmpegDecoderModule<55>::Create, 55 },
+ { "libavformat.55.dylib", FFmpegDecoderModule<55>::Create, 55 },
+ { "libavformat.54.dylib", FFmpegDecoderModule<54>::Create, 54 },
+ { "libavformat.53.dylib", FFmpegDecoderModule<53>::Create, 53 },
};
void* FFmpegRuntimeLinker::sLinkedLib = nullptr;
const AvFormatLib* FFmpegRuntimeLinker::sLib = nullptr;
#define AV_FUNC(func, ver) void (*func)();
#define LIBAVCODEC_ALLVERSION
#include "FFmpegFunctionList.h"