Bug 1247175 - Accept libavcodec 57.100+ - r?jya draft
authorGerald Squelart <gsquelart@mozilla.com>
Wed, 10 Feb 2016 18:22:37 +1100
changeset 329988 7aca52b85f2b1b89cbbc92c96f05a97950d1fc3f
parent 329801 2dfb45d74f42d2a0010696f5fd47c7a7da94cedb
child 514082 06fd0e5cf380bd7f84e751a78c2fd56fffa09742
push id10658
push usergsquelart@mozilla.com
push dateWed, 10 Feb 2016 07:22:55 +0000
reviewersjya
bugs1247175
milestone47.0a1
Bug 1247175 - Accept libavcodec 57.100+ - r?jya MozReview-Commit-ID: F9dWSBzpOEX
dom/media/platforms/ffmpeg/FFmpegLibWrapper.cpp
--- 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,