Bug 1247175 - Accept libavcodec 57.100+ - r?jya
MozReview-Commit-ID: F9dWSBzpOEX
--- a/dom/media/platforms/ffmpeg/FFmpegLibWrapper.cpp
+++ b/dom/media/platforms/ffmpeg/FFmpegLibWrapper.cpp
@@ -35,18 +35,18 @@ FFmpegLibWrapper::Link()
(decltype(avcodec_version))PR_FindSymbol(mAVCodecLib, "avcodec_version");
if (!avcodec_version) {
Unlink();
return false;
}
uint32_t version = avcodec_version();
mVersion = (version >> 16) & 0xff;
uint32_t micro = version & 0xff;
- if (mVersion == 57 && micro != 100) {
- // a micro version of 100 indicates that it's FFmpeg (as opposed to LibAV).
+ if (mVersion == 57 && micro < 100) {
+ // a micro version >= 100 indicates that it's FFmpeg (as opposed to LibAV).
// Due to current AVCodecContext binary incompatibility we can only
// support FFmpeg 57 at this stage.
Unlink();
return false;
}
enum {
AV_FUNC_AVUTIL_MASK = 1 << 8,