Unverified Commit 610d14d7 authored by norvell's avatar norvell
Browse files

Fix in FIX_1474_USAN_TRANS_INV, wrong update of shift variable

parent 086f9eee
Loading
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -84,11 +84,10 @@ void direct_transform_fx(
        wh_fx = &win_fx[segment_length4]; /*Q15*/
        wl_fx = wh_fx - 1;                /*Q15*/

        shift = extract_l( L_mult0( 3, segment_length4 ) ); /*Q0*/
#ifdef FIX_1474_USAN_TRANS_INV
        shift = extract_l( L_mult0( 2, segment_length4 ) ); /*Q0*/
        sh_fx = &in32_r16_fx[shift];                        /*Q*/
        sh_fx = &in32_r16_fx[segment_length2]; /*Q*/
#else
        shift = extract_l( L_mult0( 3, segment_length4 ) ); /*Q0*/
        sh_fx = &iseg_fx[shift];                    /*Q*/
#endif
        sl_fx2 = sh_fx - 1; /*Q*/