Commit 1c0df340 authored by Archit Tamarapu's avatar Archit Tamarapu
Browse files

[fix] missing split rendering bitrate in function and some formatting

parent 1466ecd3
Loading
Loading
Loading
Loading

lib_dec/ivas_spar_decoder.c

100755 → 100644
+2 −2

File changed.File mode changed from 100755 to 100644.

Contains only whitespace changes.

+16 −7
Original line number Diff line number Diff line
@@ -480,17 +480,21 @@ int8_t ivas_get_lc3plus_bitrate_id( const int32_t SplitRendBitRate )
    {
        case SPLIT_REND_768k:
        {
            return 3;
            return 4;
        }
        case SPLIT_REND_512k:
        {
            return 2;
            return 3;
        }
        case SPLIT_REND_384k:
        {
            return 1;
            return 2;
        }
        case SPLIT_REND_320k:
        {
            return 1;
        }
        case SPLIT_REND_256k:
        {
            return 0;
        }
@@ -514,26 +518,31 @@ int32_t ivas_get_lc3plus_size_from_id( const int8_t SplitRendBitRateId, IVAS_SPL

    switch ( SplitRendBitRateId )
    {
        case 3:
        case 4:
        {
            bitrate = SPLIT_REND_768k;
            break;
        }
        case 2:
        case 3:
        {
            bitrate = SPLIT_REND_512k;
            break;
        }
        case 1:
        case 2:
        {
            bitrate = SPLIT_REND_384k;
            break;
        }
        case 0:
        case 1:
        {
            bitrate = SPLIT_REND_320k;
            break;
        }
        case 0:
        {
            bitrate = SPLIT_REND_256k;
            break;
        }
        default:
        {
            return -1;
+1 −1
Original line number Diff line number Diff line
@@ -2249,7 +2249,7 @@ static ivas_error initMcBinauralRendering(
    // }

    // if ( initTDRend )
    /*TODO : why do we need to allocate both TD rend and CREND ??*/
    /* Allocate TD binaural renderer for planar MC layouts or custom MC layouts with headrotation, CREND for the rest */
    {
        if ( ( error = ivas_td_binaural_open_ext( &inputMc->tdRendWrapper, inConfig, hRendCfg, &inputMc->customLsInput, outSampleRate ) ) != IVAS_ERR_OK )
        {