Commit 2a30780e authored by vasilache's avatar vasilache
Browse files

fix 1305 work

parent 47ce51df
Loading
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -3406,8 +3406,12 @@ void msvq_dec(
            maxn = n;
            move16();
        }
#ifndef FIX_1305_AUDIBLE_ARTIFACT_OSBA 
        assert( ( maxn % 4 ) == 0 );
        N34 = mult( maxn, 24576 /*0.75 Q15*/ );
#else
        N34 = maxn; 
#endif

        start = 0;
        move16();
+1 −1
Original line number Diff line number Diff line
@@ -172,5 +172,5 @@
#define DOT_PROD_CHOLESKY_64BIT                 /* FhG: Issue 1323, optimized 64 bit implementation of dot_product_cholesky() */
#define OPT_BASOP_ADD_v1                        /* optimizations to avoid usage of BASOP_Util_Add_MantExp */
#define FIX_ISSUE_1327                          /* Ittiam: Fix for issue 1327: Glitch when stereo is switching from TD to FD*/
#define FIX_1305_AUDIBLE_ARTIFACT_OSBA          /* Nokia: Fix for issue 1305, LSF codebook correction */
//#define FIX_1305_AUDIBLE_ARTIFACT_OSBA          /* Nokia: Fix for issue 1305, LSF codebook correction */
#endif
+5 −2
Original line number Diff line number Diff line
@@ -301,10 +301,13 @@ void msvq_enc_fx(
            maxn = n;
            move16();
        }

#ifndef FIX_1305_AUDIBLE_ARTIFACT_OSBA 
        assert( ( maxn % 4 ) == 0 );
        N34 = mult( maxn, 24576 /*0.75f Q15*/ );

#else
        N34 = maxn;
        move16(); /* but actually there is no need for this*/
#endif
        start = 0;
        move16();
        if ( offs )