Commit 5e52d728 authored by vaclav's avatar vaclav
Browse files

move initialization of parameter 'dtx_sce_sba' to ivas_init_encoder()

parent f3531bee
Loading
Loading
Loading
Loading
+8 −4
Original line number Diff line number Diff line
@@ -430,13 +430,12 @@ ivas_error ivas_init_encoder(
                    return error;
                }
            }
            {

            if ( ( error = ivas_dirac_enc_open( st_ivas ) ) != IVAS_ERR_OK )
            {
                return error;
            }
        }
        }
        else
        {
            st_ivas->nchan_transport = hEncoderConfig->nchan_inp;
@@ -459,6 +458,11 @@ ivas_error ivas_init_encoder(

            st_ivas->hSCE[sce_id]->hMetaData->ind_list = ind_list_metadata[sce_id];
            reset_indices_enc( st_ivas->hSCE[sce_id]->hMetaData, MAX_BITS_METADATA );

            if ( st_ivas->sba_mode == SBA_MODE_SPAR && st_ivas->hEncoderConfig->Opt_DTX_ON )
            {
                st_ivas->hSCE[sce_id]->hCoreCoder[0]->dtx_sce_sba = 1;
            }
        }

        for ( cpe_id = 0; cpe_id < st_ivas->nCPE; cpe_id++ )
+0 −5
Original line number Diff line number Diff line
@@ -175,11 +175,6 @@ ivas_error ivas_sce_enc(
     * Front Pre-processing
     *----------------------------------------------------------------*/

    if ( st_ivas->sba_mode == SBA_MODE_SPAR && st_ivas->hEncoderConfig->Opt_DTX_ON )
    {
        st->dtx_sce_sba = 1;
    }

    error = pre_proc_front_ivas( hSCE, NULL, hSCE->element_brate, nb_bits_metadata, input_frame, 0, old_inp_12k8[0], old_inp_16k[0],
                                 &Etot[0], &ener[0], &relE[0], A[0], Aw[0], epsP[0], lsp_new[0], lsp_mid[0],
                                 &vad_hover_flag[0], &attack_flag[0], realBuffer[0], imagBuffer[0], old_wsp[0], pitch_fr[0], voicing_fr[0], &loc_harm[0], &cor_map_sum[0], &vad_flag_dtx[0], enerBuffer[0],