Commit 68237a36 authored by kinuthia's avatar kinuthia
Browse files

backport fix 1027

parent 39972794
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -63,6 +63,7 @@
#define NONBE_FIX_738_QUATERNION_SLERP_PRECISION        /* Philips: issue 738: Quaternion spherical linear interpolation precision handling issues */
#define FIX_1033_MEMORY_LEAK_OMASA                      /* Nokia / Orange: issue #1033: Memory leak in OMASA to BINAURAL with HRTF with bitrate switching */
#define FIX_976_USAN_PVQ_ENC_DEC_EVS_CR                 /* Ericsson:  premature cast to unsigned detected by USAN corrected  */
#define FIX_1027_GSC_INT_OVERFLOW                       /* VA: issue 2207: overflow in GSC */
/* #################### End FIXES switches ############################ */

#define BASOP_NOGLOB                                    /* Disable global symbols in BASOPs, Overflow/Carry in BASOPs disabled, additional BASOPs in case of Overflow */
+4 −0
Original line number Diff line number Diff line
@@ -640,7 +640,11 @@ void gsc_dec(
                }
                if ( concat_out[j] < 0 )
                {
#ifdef FIX_1027_GSC_INT_OVERFLOW
                    seed_init = (int16_t) ( (int32_t) seed_init + 3 );
#else
                    seed_init += 3;
#endif
                }
            }

+4 −0
Original line number Diff line number Diff line
@@ -542,7 +542,11 @@ void gsc_enc(
            }
            if ( concat_out[j] < 0 )
            {
#ifdef FIX_1027_GSC_INT_OVERFLOW
                seed_init = (int16_t) ( (int32_t) seed_init + 3 );
#else
                seed_init += 3;
#endif
            }
        }