Commit 0842e390 authored by Archit Tamarapu's avatar Archit Tamarapu
Browse files

[fix] accidental routing to TD path for MASA split-pre rendering in decoder

parent d7b59aa6
Loading
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1152,6 +1152,7 @@ ivas_error IVAS_DEC_GetSplitBinaural(
        IVAS_DEC_SPLIT_REND_WRAPPER *hSplitBinRend;
        int16_t max_band;
        int16_t pcm_out;
        int16_t td_input;
        int16_t numPoses;

        hSplitBinRend = &st_ivas->splitBinRend;
@@ -1185,6 +1186,7 @@ ivas_error IVAS_DEC_GetSplitBinaural(

        max_band = (int16_t) ( ( BINAURAL_MAXBANDS * output_Fs ) / 48000 );
        pcm_out = ( output_config == AUDIO_CONFIG_BINAURAL_SPLIT_PCM ) ? 1 : 0;
        td_input = st_ivas->renderer_type != RENDERER_BINAURAL_FASTCONV && st_ivas->renderer_type != RENDERER_BINAURAL_PARAMETRIC && st_ivas->renderer_type != RENDERER_BINAURAL_PARAMETRIC_ROOM && st_ivas->renderer_type != RENDERER_STEREO_PARAMETRIC;

        /* TODO(jbm): need to wait 20ms before writing split bitstream in 5ms mode */
        error = ivas_renderMultiBinToSplitBinaural( &hSplitBinRend->splitrend,
@@ -1195,7 +1197,7 @@ ivas_error IVAS_DEC_GetSplitBinaural(
                                                    hSplitBinRend->hMultiBinCldfbData->Cldfb_RealBuffer_Binaural,
                                                    hSplitBinRend->hMultiBinCldfbData->Cldfb_ImagBuffer_Binaural,
                                                    max_band, output, 1,
                                                    st_ivas->renderer_type != RENDERER_BINAURAL_FASTCONV,
                                                    td_input,
                                                    pcm_out );
        if ( error != IVAS_ERR_OK )
        {