Commit 30d6d41a authored by fotopoulou's avatar fotopoulou
Browse files

move st->element_brate initialization to create_sce_enc()

parent e4447819
Loading
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -370,6 +370,9 @@ ivas_error create_sce_enc(
    }

    st->total_brate = hSCE->element_brate; /* dummy initialization for getting right pointers initialization of input buffers in init_coder_ace_plus() */
#ifdef FIX_1283_STEREO_DFT_COLLAPSE
    st->element_brate = -1;
#endif
    st->mct_chan_mode = MCT_CHAN_MODE_REGULAR;

    if ( ( error = init_encoder( st, st_ivas, 0, 0, st_ivas->ism_mode, hSCE->element_brate ) ) != IVAS_ERR_OK )
+1 −3
Original line number Diff line number Diff line
@@ -1315,9 +1315,7 @@ ivas_error IVAS_ENC_EncodeFrameToSerial(
    if ( hEncoderConfig->ivas_format == MONO_FORMAT ) /* EVS mono */
    {
        hCoreCoder->total_brate = hEncoderConfig->ivas_total_brate; /* needed in case of bitrate switching */
#ifdef FIX_1283_STEREO_DFT_COLLAPSE
        hCoreCoder->element_brate = hEncoderConfig->ivas_total_brate; /* needed in checks in core-coder functions other than mono*/
#endif

#ifdef DEBUGGING
        hCoreCoder->id_element = 0;
#endif