Commit f394632c authored by fotopoulou's avatar fotopoulou
Browse files

move st->element_brate initialization

parent d38fdfb1
Loading
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -489,6 +489,10 @@ ivas_error create_sce_enc_fx(
    }

    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;
    move32();
#endif
    st->mct_chan_mode = MCT_CHAN_MODE_REGULAR;
    move32();
    move32();
+0 −4
Original line number Diff line number Diff line
@@ -1475,10 +1475,6 @@ ivas_error IVAS_ENC_EncodeFrameToSerial(
    {
        hCoreCoder->total_brate = hEncoderConfig->ivas_total_brate; /* needed in case of bitrate switching */
        move32();
#ifdef FIX_1283_STEREO_DFT_COLLAPSE
        hCoreCoder->element_brate = hEncoderConfig->ivas_total_brate; /* needed in checks in core-coder functions other than mono*/
        move32();
#endif

        IF( EQ_16( hEncoderConfig->stereo_dmx_evs, 1 ) )
        {