зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1862504 - Removed 'else' after 'return' for code readability. r=alwu,sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D194710
This commit is contained in:
Родитель
8efeebf519
Коммит
5732ecb6cb
|
@ -75,11 +75,16 @@ size_t AudioConverter::ProcessInternal(void* aOut, const void* aIn,
|
|||
if (!aFrames) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (mIn.Channels() > mOut.Channels()) {
|
||||
return DownmixAudio(aOut, aIn, aFrames);
|
||||
} else if (mIn.Channels() < mOut.Channels()) {
|
||||
}
|
||||
|
||||
if (mIn.Channels() < mOut.Channels()) {
|
||||
return UpmixAudio(aOut, aIn, aFrames);
|
||||
} else if (mIn.Layout() != mOut.Layout() && CanReorderAudio()) {
|
||||
}
|
||||
|
||||
if (mIn.Layout() != mOut.Layout() && CanReorderAudio()) {
|
||||
ReOrderInterleavedChannels(aOut, aIn, aFrames);
|
||||
} else if (aIn != aOut) {
|
||||
memmove(aOut, aIn, FramesOutToBytes(aFrames));
|
||||
|
|
Загрузка…
Ссылка в новой задаче