Bug 1349658 - Use `else if` to not flow into final `else` r?jwwang
Previously a typo had no `else`, making the control flow into the default else
block. Also fix formatting to standard.
MozReview-Commit-ID: LTqpUkHy9av
--- a/dom/media/platforms/agnostic/WAVDecoder.cpp
+++ b/dom/media/platforms/agnostic/WAVDecoder.cpp
@@ -91,18 +91,17 @@ WaveDataDecoder::ProcessDecode(MediaRawD
}
for (int i = 0; i < frames; ++i) {
for (unsigned int j = 0; j < mInfo.mChannels; ++j) {
if (mInfo.mProfile == 3) { //IEEE float Data
uint32_t v = aReader.ReadU32();
float decoded = BitwiseCast<float>(v);
buffer[i * mInfo.mChannels + j] =
FloatToAudioSample<AudioDataValue>(decoded);
- }
- if (mInfo.mProfile == 6) { //ALAW Data
+ } else if (mInfo.mProfile == 6) { //ALAW Data
uint8_t v = aReader.ReadU8();
int16_t decoded = DecodeALawSample(v);
buffer[i * mInfo.mChannels + j] =
IntegerToAudioSample<AudioDataValue>(decoded);
} else if (mInfo.mProfile == 7) { //ULAW Data
uint8_t v = aReader.ReadU8();
int16_t decoded = DecodeULawSample(v);
buffer[i * mInfo.mChannels + j] =