瀏覽代碼

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

This bug corrupted the audio headers due to mis-use of operator
precedence.
jp9000 10 年之前
父節點
當前提交
0b2e1d6a9c
共有 1 個文件被更改,包括 1 次插入1 次删除
  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;