Commit 5fc451d4 authored by Vidhya V P's avatar Vidhya V P
Browse files

Resolving the bitstream mismatch between encoder and decoder while BR

switching for FOA long vector.
parent a8b196a4
Loading
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -214,6 +214,18 @@ ivas_error ivas_sba_dec_reconfigure(
                return error;
            }
        }
#ifdef FIX_736_FOA_BR_SWITCH
        if ( ( hSpar->hPCA == NULL ) &&
             ( st_ivas->hDecoderConfig->ivas_total_brate == PCA_BRATE && sba_order_internal == 1 ) )
        {
            if ( ( hSpar->hPCA = (PCA_DEC_STATE *) malloc( sizeof( PCA_DEC_STATE ) ) ) == NULL )
            {
                return IVAS_ERROR( IVAS_ERR_FAILED_ALLOC, "Can not allocate memory for PCA decoder" );
            }

            ivas_pca_dec_init( hSpar->hPCA );
        }
#endif
        ivas_spar_config( ivas_total_brate, sba_order_internal, &st_ivas->nchan_transport, &st_ivas->nSCE, &st_ivas->nCPE, &hSpar->core_nominal_brate, st_ivas->sid_format );
    }
    else