win-mf: Fix bug where 48khz wouldn't work
This bug corrupted the audio headers due to mis-use of operator precedence.master
parent
ad3d448f19
commit
0b2e1d6a9c
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue