Commit c90b16fd authored by Sandesh Venkatesh's avatar Sandesh Venkatesh
Browse files

Fix for -10dB crash issue

[x] Fix for -10dB crash which was occuring
as st->hBWE_TD->mem_resamp_HB[0] was being
set to -nan in subsequent frames.
[x] Cause of this was while doing intermediate
float to fix for st->hBWE_TD buffers, the for
loop for st->hBWE_TD->state_lsyn_filt_dwn_shb_fx_32
was being run 1 extra time due to which it was
overwriting the 0th index of st->hBWE_TD->mem_resamp_HB
parent 710fb09b
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -886,7 +886,7 @@ ivas_error ivas_core_dec(
                {
                    st->hBWE_TD->mem_resamp_HB_32k_fx_32[i] = st->hBWE_TD->mem_resamp_HB_32k[i] * ( 1 << 11 );
                }
                for ( int i = 0; i < 2 * ALLPASSSECTIONS_STEEP + 1; i++ )
                for ( int i = 0; i < 2 * ALLPASSSECTIONS_STEEP; i++ )
                {
                    st->hBWE_TD->state_lsyn_filt_dwn_shb_fx_32[i] = st->hBWE_TD->state_lsyn_filt_dwn_shb[i] * ( 1 << 11 );
                    st->hBWE_TD->state_lsyn_filt_shb_fx_32[i] = st->hBWE_TD->state_lsyn_filt_shb[i] * ( 1 << 11 );