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:
Craig Matthew Grubb 2023-12-04 08:02:46 +00:00
Родитель 8efeebf519
Коммит 5732ecb6cb
1 изменённых файлов: 7 добавлений и 2 удалений

Просмотреть файл

@ -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));