Skip to content

Commit

Permalink
win-mf: Fix bug where 48khz wouldn't work
Browse files Browse the repository at this point in the history
This bug corrupted the audio headers due to mis-use of operator
precedence.
  • Loading branch information
jp9000 committed Jul 9, 2015
1 parent ad3d448 commit 0b2e1d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/win-mf/mf-aac-encoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ void MFAAC::Encoder::InitializeExtraData()
*extraData16 = profile << 11;
// Sample Index (3=48, 4=44.1)
// .... .XXX X... ....
*extraData16 |= sampleRate == 48000 ? 3 : 4 << 7;
*extraData16 |= (sampleRate == 48000 ? 3 : 4) << 7;
// Channels
// .... .... .XXX X...
*extraData16 |= channels << 3;
Expand Down

0 comments on commit 0b2e1d6

Please sign in to comment.