Commit f9978fb5 authored by Fabian Bauer's avatar Fabian Bauer
Browse files

made fix from issue 2283 permanent because according MR was merged and macro is deleted

parent c8c60dc4
Loading
Loading
Loading
Loading
Loading
+1 −11
Original line number Diff line number Diff line
@@ -583,29 +583,19 @@ static void audio_buffer_td_to_cldfb_fx(

            td_read_ptr += num_bands;

#ifdef FIX_2283_Q_CLDFB
            /* scale re and im according to exp-q_cldfb */
            {
                Word16 exp = *( cldfb_buffer.pq_fact );
                Word16 noChannels = cldfbAna[ch]->no_channels;

#ifdef FIX_2283_ACCU_CLDFB
                Word16 scale = sub( exp, q_cldfb );
                FOR( Word16 j = 0; j < noChannels; j++ )
                {
                    re[j] = L_shl( re[j], scale ); /*Q(exp)*/
                    im[j] = L_shl( im[j], scale ); /*Q(exp)*/
                }
#else
                Word16 scale = sub( sub( exp, q_cldfb ), 1 );
                FOR( Word16 j = 0; j < noChannels; j++ )
                {
                    re[j] = L_shl( re[j], scale ); /*Q(exp)*/
                    im[j] = L_shl( im[j], scale ); /*Q(exp)*/
            }
#endif
            }
#endif

            FOR( int smplIdx = 0; smplIdx < num_bands; smplIdx++ )
            {
                *cldfb_write_ptr = L_add( *cldfb_write_ptr, re[smplIdx] );