diff --git a/dom/media/fmp4/MP4Decoder.cpp b/dom/media/fmp4/MP4Decoder.cpp index a53266aec9..6cb5000bde 100644 --- a/dom/media/fmp4/MP4Decoder.cpp +++ b/dom/media/fmp4/MP4Decoder.cpp @@ -160,6 +160,9 @@ IsFFmpegAvailable() #ifndef MOZ_FFMPEG return false; #else + if (!Preferences::GetBool("media.ffmpeg.enabled", false)) { + return false; + } nsRefPtr m = FFmpegRuntimeLinker::CreateDecoderModule(); return !!m; #endif