зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1267637: [AT] P6. Reject audio data with unsupported channel configuration. r=gerald
MozReview-Commit-ID: IrjTi5gWp7F --HG-- extra : rebase_source : b6a9887ff7154286f3f5a1357034ecd3ab29fe27
This commit is contained in:
Родитель
938a977605
Коммит
65e4605445
|
@ -283,6 +283,9 @@ AppleATDecoder::DecodeSample(MediaRawData* aSample)
|
||||||
if (mChannelLayout && !mAudioConverter) {
|
if (mChannelLayout && !mAudioConverter) {
|
||||||
AudioConfig in(*mChannelLayout.get(), rate);
|
AudioConfig in(*mChannelLayout.get(), rate);
|
||||||
AudioConfig out(channels, rate);
|
AudioConfig out(channels, rate);
|
||||||
|
if (!in.IsValid() || !out.IsValid()) {
|
||||||
|
return NS_ERROR_FAILURE;
|
||||||
|
}
|
||||||
mAudioConverter = MakeUnique<AudioConverter>(in, out);
|
mAudioConverter = MakeUnique<AudioConverter>(in, out);
|
||||||
}
|
}
|
||||||
if (mAudioConverter) {
|
if (mAudioConverter) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче