Commit c9f90ac8 authored by vaclav's avatar vaclav
Browse files

- comments

- fix uninitialized value
parent 190a901b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -163,7 +163,7 @@

#define MASA_AND_OBJECTS_VE // VA: improve codec print-outs
#define OMASA_BRATE /* VA: combined format bit-budget distribution */
#define OMASA_BRATE_FIX // fix at lowest bitrates and 1 inactive ISM - more work needed
#define OMASA_BRATE_FIX // fix at lowest bitrates and 1 inactive ISM - more verification/tuning needed
#define DEBUG_VA // output 'res/brate_ism' and 'res_brate_masa' bit-rates debugging files

#endif
+1 −1
Original line number Diff line number Diff line
@@ -1040,7 +1040,7 @@ void bandwidth_switching_detect(
        st->bws_cnt1 = 0;
    }
    else if ( st->total_brate > ACELP_9k60 && st->last_core_brate < ACELP_9k60 && st->bwidth == SWB && st->last_bwidth == WB
#ifdef OMASA_BRATE // VE: !!!!! TBV // VE: this likely breaks BE in pure ISM !!!
#ifdef OMASA_BRATE // VE: !!!!! this breaks BE in pure ISM
              && st->last_core_brate != 2450
#endif
    )
+4 −0
Original line number Diff line number Diff line
@@ -691,6 +691,10 @@ ivas_error create_cpe_dec(
        set_f( hCPE->prev_synth[n], 0, NS2SA( output_Fs, IVAS_DEC_DELAY_NS - STEREO_DFT32MS_OVL_NS ) );
    }

#ifdef OMASA_BRATE
    hCPE->brate_surplus = 0;
#endif

    /*-----------------------------------------------------------------*
     * DFT stereo I/O Buffers: allocate and initialize
     *-----------------------------------------------------------------*/
+4 −0
Original line number Diff line number Diff line
@@ -843,6 +843,10 @@ ivas_error create_cpe_enc(
    hCPE->hFrontVad[0] = NULL;
    hCPE->hFrontVad[1] = NULL;

#ifdef OMASA_BRATE
    hCPE->brate_surplus = 0;
#endif

    /*-----------------------------------------------------------------*
     * Input memory buffer: allocate and initialize
     *-----------------------------------------------------------------*/