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

[fix] crash with instrumented build of decoder + update render configs

parent a8c40bdb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
[SPLITREND]
BITRATE = 768000;
BITRATE = 1536000;
DOF = 2;
HQMODE = 0;
POSECORRECTIONMODE = 1;
+1 −1
Original line number Diff line number Diff line
[SPLITREND]
BITRATE = 768000;
BITRATE = 1792000;
DOF = 3;
HQMODE = 0;
POSECORRECTIONMODE = 1;
+1 −1
Original line number Diff line number Diff line
[SPLITREND]
BITRATE = 512000;
BITRATE = 320000;
DOF = 0;
HQMODE = 0;
POSECORRECTIONMODE = 1;
+11 −1
Original line number Diff line number Diff line
@@ -1819,6 +1819,16 @@ void ivas_split_renderer_close( SPLIT_REND_WRAPPER *hSplitBinRend )
        if ( hSplitBinRend->lc3plusDelayBuffers[i] != NULL )
        {
            free( hSplitBinRend->lc3plusDelayBuffers[i] );
            hSplitBinRend->lc3plusDelayBuffers[i] = NULL;
        }
    }

    for ( i = 0; i < MAX_HEAD_ROT_POSES - 1; ++i )
    {
        if ( hSplitBinRend->hTdRendHandles[i] != NULL )
        {
            hSplitBinRend->hTdRendHandles[i]->HrFiltSet_p = NULL;
            ivas_td_binaural_close( &hSplitBinRend->hTdRendHandles[i] );
        }
    }
#endif
+7 −6
Original line number Diff line number Diff line
@@ -441,6 +441,13 @@ int32_t ivas_get_max_td_pose_correction_bitrate( void )

int32_t ivas_get_lc3plus_bitrate( const int32_t SplitRendBitRate, IVAS_SPLIT_REND_POSE_CORRECTION_MODE poseCorrectionMode )
{
#ifdef SPLIT_REND_LC3PLUS_HBR_DBG
    if ( SplitRendBitRate == -1 )
    {
        return -1;
    }
#endif

    if ( poseCorrectionMode == IVAS_SPLIT_REND_POSE_CORRECTION_MODE_CLDFB )
    {
        int32_t inBandMdBps = 8 * FRAMES_PER_SECOND;
@@ -448,12 +455,6 @@ int32_t ivas_get_lc3plus_bitrate( const int32_t SplitRendBitRate, IVAS_SPLIT_REN
    }
    if ( poseCorrectionMode == IVAS_SPLIT_REND_POSE_CORRECTION_MODE_TD )
    {
#ifdef SPLIT_REND_LC3PLUS_HBR_DBG
        if ( SplitRendBitRate == -1 )
        {
            return -1;
        }
#endif
        return SplitRendBitRate - ivas_get_max_td_pose_correction_bitrate();
    }