зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1322070: P1. Don't attempt to decode some audio format. r=jolin
Rather than asserting that the bit depth is 16 bits, let it fallback to other PDMs MozReview-Commit-ID: DnO3nvgEFAe --HG-- extra : rebase_source : 486e2aece7ebbbdf7058a6580198b1dc5c97247a
This commit is contained in:
Родитель
5ee2bd8800
Коммит
716c21f071
|
@ -208,7 +208,10 @@ already_AddRefed<MediaDataDecoder>
|
|||
AndroidDecoderModule::CreateAudioDecoder(const CreateDecoderParams& aParams)
|
||||
{
|
||||
const AudioInfo& config = aParams.AudioConfig();
|
||||
MOZ_ASSERT(config.mBitDepth == 16, "We only handle 16-bit audio!");
|
||||
if (config.mBitDepth != 16) {
|
||||
// We only handle 16-bit audio.
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
MediaFormat::LocalRef format;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче