Commit 5453725b authored by vaclav's avatar vaclav
Browse files

Merge remote-tracking branch 'remotes/origin/main' into...

Merge remote-tracking branch 'remotes/origin/main' into 1914-remove-divisions-with-constant-denominator
parents 650b089f 7e9a5647
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -169,6 +169,7 @@
#define NONBE_1293_SR_HRTF                              /* VA: issue 1293: add support of external HRTFs in split rendering */
#define FIX_1249_REMOVE_OBSOLETE_ALLRAD_MATRIX          /* VA: issue 1249: remove obsolete code around ALLRAD decoder matrix */
#define NONBE_1220_OMASA_JBM_BRATE_SW_FLUSH             /* VA: issue 1220: fix bug in renderer flush in OMASA 1ISM JBM bitrate switching */
#define NONBE_1118_EVS_LR_HQ_BITERROR                   /* VA: issue 1118: fix EVS decoder crash in LR-HQ in case of bit errors */
#define FIX_1139_REV_COLORATION_SHORT_T60               /* Nokia,FhG: Fix issue 1139, prevent sound coloration artefacts at very low reverberation times */

/* #################### End BASOP porting switches ############################ */
+23 −0
Original line number Diff line number Diff line
@@ -629,10 +629,33 @@ void hq_lr_dec_fx(

            IF( GE_16( i, highband ) )
            {

#ifdef NONBE_1118_EVS_LR_HQ_BITERROR
                /* safety check in case of bit errors */
                IF( GT_32( Ep_fx[i], 536788991 /* max(Q30) */ ) )
                {
                    st_fx->BER_detect = 1;
                    move16();
                    set32_fx( L_yout, 0, inner_frame );
                    return;
                }

#endif
                enerH_fx = L_add_sat( enerH_fx, L_shl_sat( Ep_fx[i], 2 ) ); /*Q0 */
            }
            ELSE IF( GE_16( i, lowband ) )
            {
#ifdef NONBE_1118_EVS_LR_HQ_BITERROR
                /* safety check in case of bit errors */
                IF( GT_32( Ep_fx[i], 536788991 /* max(Q30) */ ) )
                {
                    st_fx->BER_detect = 1;
                    move16();
                    set32_fx( L_yout, 0, inner_frame );
                    return;
                }

#endif
                enerL_fx = L_add_sat( enerL_fx, L_shl_sat( Ep_fx[i], 2 ) ); /*Q0 */
            }
        }