Commit fc8601a3 authored by Archit Tamarapu's avatar Archit Tamarapu
Browse files

[cleanup] accept NONBE_1199_OMASA_JBM_BRATE_SW_FLUSH

parent 6807958c
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -108,7 +108,6 @@
#define FIX_1387_INIT_PRM_SQQ                           /* FhG: initialize pointer prm_sqQ, which might be uninitialized in case of bfi == 1 */
#define FIX_1349_TNS_CRASH                              /* FhG: Fix crash in TNS entropy coding, in case order of joint TNS coding is reduced to 0 */
#define FIX_1179_USAN_PHASEECU                          /* Eri: issue 1179:  better handling of 16 bit wrap around for very long(>200ms) FER-bursts   */
#define NONBE_1199_OMASA_JBM_BRATE_SW_FLUSH             /* VA: issue 1199: fix bug in renderer flush in OMASA JBM bitrate switching */
#define NONBE_1200_ISM_JBM_BRATE_SW_FLUSH               /* VA: issue 1200: fix bug in renderer flush in ISM JBM bitrate switching */
#define NONBE_1293_CRASH_FIRST_FRAME_LOST               /* VA: issue 1293: fix G.192 decoder crash when first frame is lost */
#define FIX_1384_MSAN_stereo_tcx_core_enc               /* VA: issue 1384: fix use-of-uninitialized value in stereo_tcx_core_enc() */
+0 −4
Original line number Diff line number Diff line
@@ -652,10 +652,8 @@ ivas_error ivas_dec_setup(
            }

            /* this should be non-zero if original input format was MASA_ISM_FORMAT */
#ifdef NONBE_1199_OMASA_JBM_BRATE_SW_FLUSH
            st_ivas->ism_mode = ISM_MODE_NONE;
            move16();
#endif
            st_ivas->nchan_ism = add( st_ivas->bit_stream[sub( k, 3 )], shl( st_ivas->bit_stream[sub( k, 2 )], 1 ) );

            IF( GT_16( st_ivas->nchan_ism, 0 ) )
@@ -947,7 +945,6 @@ ivas_error ivas_dec_setup(
            }
        }

#ifdef NONBE_1199_OMASA_JBM_BRATE_SW_FLUSH
        test();
        IF( GT_16( st_ivas->ini_frame, 0 ) && EQ_32( st_ivas->ivas_format, MASA_FORMAT ) )
        {
@@ -957,7 +954,6 @@ ivas_error ivas_dec_setup(
            move16();
        }

#endif
        IF( EQ_32( st_ivas->ivas_format, ISM_FORMAT ) )
        {
            ISM_MODE last_ism_mode = st_ivas->ism_mode;
+0 −14
Original line number Diff line number Diff line
@@ -1940,20 +1940,6 @@ ivas_error ivas_masa_dec_reconfigure_fx(

    ivas_masa_set_elements_fx( ivas_total_brate, st_ivas->mc_mode, st_ivas->nchan_transport, st_ivas->hQMetaData, &tmp, &tmp, &tmp, st_ivas->ivas_format, st_ivas->ism_mode, ism_total_brate );

#ifndef NONBE_1199_OMASA_JBM_BRATE_SW_FLUSH
    IF( EQ_32( st_ivas->ivas_format, MASA_FORMAT ) )
    {
        IF( NE_32( st_ivas->hDecoderConfig->output_config, IVAS_AUDIO_CONFIG_EXTERNAL ) )
        {
            move16();
            st_ivas->nchan_ism = 0; /* Initialization if it has not been already read from the end of the bitstream at the same time
                                    with reading of the format: nchan_ism is needed in MASA format because for the EXT output in
                                    MASA-only (pre-rendering mode of OMASA) the number of ISMs to output correct number of empty objects is needed */
        }
        st_ivas->ism_mode = ISM_MODE_NONE;
        move16();
    }
#endif
    {
        Word16 tc_nchan_to_allocate;
        Word16 tc_nchan_transport;
+0 −12
Original line number Diff line number Diff line
@@ -3786,12 +3786,6 @@ ivas_error IVAS_DEC_ReadFormat(
            // st_ivas->nchan_transport = nchan_transport_old; // ToDo: temporarily deactivated to keep FIX_HRTF_LOAD bit-exact but this is likely a bug in the main -> see issue #1200
#endif

#ifndef NONBE_1199_OMASA_JBM_BRATE_SW_FLUSH
            if ( st_ivas->ivas_format == MASA_FORMAT )
            {
                st_ivas->nchan_ism = 0; // ToDo: temporary hack to keep FIX_HRTF_LOAD bit-exact but this is likely a bug in the main -> see issue #1199
            }
#endif
            IF( st_ivas->hTcBuffer == NULL )
            {
                return IVAS_ERR_UNEXPECTED_NULL_POINTER;
@@ -3829,12 +3823,6 @@ ivas_error IVAS_DEC_ReadFormat(
// st_ivas->nchan_transport = nchan_transport_old; // ToDo: temporarily deactivated to keep FIX_HRTF_LOAD bit-exact but this is likely a bug in the main -> see issue #1200
#endif

#ifndef NONBE_1199_OMASA_JBM_BRATE_SW_FLUSH
            if ( st_ivas->ivas_format == MASA_FORMAT )
            {
                st_ivas->nchan_ism = 0; // ToDo: temporary hack to keep FIX_HRTF_LOAD bit-exact but this is likely a bug in the main -> see issue #1199
            }
#endif
            IF( LT_16( tc_granularity_new, st_ivas->hTcBuffer->n_samples_granularity ) )
            {
                IF( ( error = ivas_jbm_dec_flush_renderer_fx( st_ivas, tc_granularity_new, renderer_type_old, intern_config_old, &st_ivas->hIntSetup, mc_mode_old, ism_mode_old, &hIvasDec->nSamplesFlushed, hIvasDec->flushbuffer ) ) != IVAS_ERR_OK )