Commit 43e36653 authored by Sandesh Venkatesh's avatar Sandesh Venkatesh
Browse files

Merge branch '959-decoder-crash-for-mct-mc-7-1-4-192kbps-jbm-operation' into 'main'

Resolve "Decoder crash for MCT-MC 7.1+4 > 192kbps JBM operation"

Closes #959

See merge request !713
parents 3e845c7a 0fe7c6b5
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -1090,7 +1090,7 @@ ivas_error IVAS_DEC_GetSamples(
            Word16 tmp_apaExecBuffer[APA_BUF];
            IF( EQ_16( (Word16) hIvasDec->mode, IVAS_DEC_MODE_EVS ) )
            {
                FOR( Word16 i = 0; i < APA_BUF_PER_CHANNEL * nTransportChannels; ++i )
                FOR( Word32 i = 0; i < APA_BUF_PER_CHANNEL * nTransportChannels; ++i )
                {
                    tmp_apaExecBuffer[i] = extract_l( L_shr( hIvasDec->apaExecBuffer_fx[i], Q11 ) ); // Q0
                }
@@ -1098,14 +1098,14 @@ ivas_error IVAS_DEC_GetSamples(
                {
                    return IVAS_ERR_UNKNOWN;
                }
                FOR( Word16 i = 0; i < APA_BUF_PER_CHANNEL * nTransportChannels; ++i )
                FOR( Word32 i = 0; i < APA_BUF_PER_CHANNEL * nTransportChannels; ++i )
                {
                    hIvasDec->apaExecBuffer_fx[i] = L_shl( tmp_apaExecBuffer[i], Q11 ); // Q11
                }
            }
            ELSE
            {
                FOR( Word16 i = 0; i < APA_BUF_PER_CHANNEL * nTransportChannels; ++i )
                FOR( Word32 i = 0; i < APA_BUF_PER_CHANNEL * nTransportChannels; ++i )
                {
                    tmp_apaExecBuffer[i] = extract_l( L_shr( hIvasDec->apaExecBuffer_fx[i], Q12 ) ); // Q(-1)
                }
@@ -1114,7 +1114,7 @@ ivas_error IVAS_DEC_GetSamples(
                    return IVAS_ERR_UNKNOWN;
                }

                FOR( Word16 i = 0; i < APA_BUF_PER_CHANNEL * nTransportChannels; ++i )
                FOR( Word32 i = 0; i < APA_BUF_PER_CHANNEL * nTransportChannels; ++i )
                {
                    hIvasDec->apaExecBuffer_fx[i] = L_shl( tmp_apaExecBuffer[i], Q12 ); // Q11
                }