Browse Source

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

This bug corrupted the audio headers due to mis-use of operator
precedence.
jp9000 10 năm trước cách đây
mục cha
commit
0b2e1d6a9c
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      plugins/win-mf/mf-aac-encoder.cpp

+ 1 - 1
plugins/win-mf/mf-aac-encoder.cpp

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