diff --git a/lib_rend/ivas_rotation.c b/lib_rend/ivas_rotation.c index f320c4a5221b82f662711fef790f94b0a7c7a72f..6f7c0ddf7f4753a3619c3643130fdf7d5d44a166 100644 --- a/lib_rend/ivas_rotation.c +++ b/lib_rend/ivas_rotation.c @@ -773,7 +773,7 @@ void rotateFrame_sd( /* output channel index without LFE */ ch_out_woLFE = ( ch_out >= index_lfe ) ? ch_out - 1 : ch_out; - gains_prev_fx[ch_in][ch_out] = tmp_gains_fx[ch_out_woLFE]; + gains_prev_fx[ch_in][ch_out] = L_shr( tmp_gains_fx[ch_out_woLFE], Q2 ); // Adjusting Q30 -> Q28 } } @@ -798,7 +798,7 @@ void rotateFrame_sd( /* output channel index without LFE */ ch_out_woLFE = ( ch_out >= index_lfe ) ? ch_out - 1 : ch_out; - gains_fx[ch_in][ch_out] = tmp_gains_fx[ch_out_woLFE]; + gains_fx[ch_in][ch_out] = L_shr( tmp_gains_fx[ch_out_woLFE], Q2 ); // Adjusting Q30 -> Q28 } } }