win-mf: Fix bug where 48khz wouldn't work

This bug corrupted the audio headers due to mis-use of operator
precedence.
master
jp9000 2015-07-09 10:45:24 -07:00
parent ad3d448f19
commit 0b2e1d6a9c
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ void MFAAC::Encoder::InitializeExtraData()
*extraData16 = profile << 11; *extraData16 = profile << 11;
// Sample Index (3=48, 4=44.1) // Sample Index (3=48, 4=44.1)
// .... .XXX X... .... // .... .XXX X... ....
*extraData16 |= sampleRate == 48000 ? 3 : 4 << 7; *extraData16 |= (sampleRate == 48000 ? 3 : 4) << 7;
// Channels // Channels
// .... .... .XXX X... // .... .... .XXX X...
*extraData16 |= channels << 3; *extraData16 |= channels << 3;