зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1295886 - P8. Never use AndroidDecoderModule to decode FLAC. r=gerald
The behaviour of the system decoder is unpredictable. MozReview-Commit-ID: FubvCm0xyiL --HG-- extra : rebase_source : 4ac49f1c6fc575e361520598de413f7439a05d0e
This commit is contained in:
Родитель
af8b24d7c1
Коммит
032cb23c68
|
@ -156,8 +156,10 @@ AndroidDecoderModule::SupportsMimeType(
|
|||
|
||||
// Prefer the gecko decoder for opus and vorbis; stagefright crashes
|
||||
// on content demuxed from mp4.
|
||||
// Not all android devices support FLAC even when they say they do.
|
||||
if (OpusDataDecoder::IsOpus(aMimeType) ||
|
||||
VorbisDataDecoder::IsVorbis(aMimeType)) {
|
||||
VorbisDataDecoder::IsVorbis(aMimeType) ||
|
||||
aMimeType.EqualsLiteral("audio/flac")) {
|
||||
LOG("Rejecting audio of type %s", aMimeType.Data());
|
||||
return false;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче