audio/mp3: Bug fix in L3_Hybrid_Synthesis

This commit is contained in:
Hajime Hoshi 2017-06-16 20:00:32 +09:00
parent 74c2953f56
commit bf9a259565

View File

@ -340,10 +340,10 @@ var store = [2][32][18]float32{}
func L3_Hybrid_Synthesis(gr C.unsigned, ch C.unsigned) {
for sb := 0; sb < 32; sb++ { /* Loop through all 32 subbands */
/* Determine blocktype for this subband */
bt := 0
bt := int(C.g_side_info.block_type[gr][ch])
if (C.g_side_info.win_switch_flag[gr][ch] == 1) &&
(C.g_side_info.mixed_block_flag[gr][ch] == 1) && (sb < 2) {
bt = int(C.g_side_info.block_type[gr][ch])
bt = 0
}
/* Do the inverse modified DCT and windowing */
in := make([]float32, 18)