applied myffmpegXP-20180121.diff

This commit is contained in:
2018-07-12 12:11:42 +08:00
parent 34fd8f591f
commit 5e6ffa0ecc
14 changed files with 288 additions and 39 deletions
+6 -7
View File
@@ -52,7 +52,7 @@ IsWhitelistedH264Codec(const nsAString& aCodec)
return false;
}
#ifdef XP_WIN
#if 0
if (!Preferences::GetBool("media.use-blank-decoder") &&
!WMFDecoderModule::HasH264()) {
return false;
@@ -228,19 +228,18 @@ IsGMPDecoderAvailable()
static bool
HavePlatformMPEGDecoders()
{
#ifdef XP_WIN
// We always have H.264/AAC platform decoders on Windows.
return true;
#else
return Preferences::GetBool("media.use-blank-decoder") ||
IsAndroidAvailable() ||
#ifdef XP_WIN
// We have H.264/AAC platform decoders on Windows Vista and up.
IsFFmpegAvailable() ||
IsVistaOrLater() ||
#endif
IsAndroidAvailable() ||
IsAppleAvailable() ||
IsGonkMP4DecoderAvailable() ||
IsGMPDecoderAvailable() ||
// TODO: Other platforms...
false;
#endif
}
/* static */