Commit 86f49eba authored by TYAGIRIS's avatar TYAGIRIS
Browse files

address review comment on saving prev-bfi

parent e1ea1f9d
Loading
Loading
Loading
Loading
Loading
+14 −2
Original line number Diff line number Diff line
@@ -303,8 +303,20 @@ ivas_error ivas_corecoder_dec_reconfig(
        }

#ifdef NONBE_FIX_862_UBSAN_SPAR_DEC_BR_SW_PLC
        st0 = ( st_ivas->nSCE > 0 ) ? st_ivas->hSCE[0]->hCoreCoder[0] : st_ivas->hCPE[0]->hCoreCoder[0];
        st0->prev_bfi = prev_bfi;
        for ( sce_id = 0; sce_id < st_ivas->nSCE; sce_id++ )
        {
            st_ivas->hSCE[sce_id]->hCoreCoder[0]->prev_bfi = prev_bfi;
        }
        for ( cpe_id = 0; cpe_id < st_ivas->nCPE; cpe_id++ )
        {
            for ( n = 0; n < CPE_CHANNELS; n++ )
            {
                if ( st_ivas->hCPE[cpe_id]->hCoreCoder[n] != NULL )
                {
                    st_ivas->hCPE[cpe_id]->hCoreCoder[n]->prev_bfi = prev_bfi;
                }
            }
        }
#endif
    }