Commit 342430c5 authored by vasilache's avatar vasilache Committed by Sandesh Venkatesh
Browse files

fix 853 fixed point

parent 3857b473
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -191,7 +191,7 @@
#define FIX_924_IGF_ROUNDFX_SAT
#define FIX_930_JBM_BUFSIZE_MULT                /* FhG: Fix 930, Word16 too small for apa_buffer_size */
#define NONBE_FIX_943_PORT_1208_DFT_STEREO_PLC_BURST /* Ericsson: BASOP Issue 943, Float Issue 1208, fix for overflow of sample offset counter for burst error in DFT Stereo PLC. */

#define FIX_853_DECODE_MASA_ISM_AZIMUTH_PREC    /* Nokia: Fixes ivas_decode_masaism_metadata decision logic change due to precision difference; needs corresponding fix in floating point */
/* ################## End DEVELOPMENT switches ######################### */

/* clang-format on */
+4 −0
Original line number Diff line number Diff line
@@ -5585,6 +5585,10 @@ static Word16 ivas_decode_masaism_metadata_fx(
                    Word16 tmp_e;
                    delta_phi = L_deposit_h( BASOP_Util_Divide1616_Scale( 180, no_phi_masa[bits_ism[obj] - 1][idx_el], &tmp_e ) );
                    delta_phi = L_shr( delta_phi, sub( 9, tmp_e ) ); /* to maintain Q22 */
#ifdef FIX_853_DECODE_MASA_ISM_AZIMUTH_PREC 
                    delta_phi = L_shr( delta_phi, 22 );
                    delta_phi = L_shl( delta_phi, 22 );
#endif
                    IF( GT_32( L_sub( azimuth, hMasaIsmData->q_azimuth_old_fx[obj] ), delta_phi ) )
                    {
                        azimuth = L_sub( azimuth, delta_phi );