Commit c178a8e7 authored by Nishant S Kulgod's avatar Nishant S Kulgod
Browse files

commit 1

parent f0d4f090
Loading
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1687,6 +1687,10 @@ static ivas_error decodeG192(
                    goto cleanup;
                }
            }
            if ( frame == 2166 )
            {
                frame = frame;
            }
            if ( ( error = IVAS_DEC_GetSamples( hIvasDec, nSamplesToRender, ( pcmBuf + nOutChannels * nSamplesRendered ), &nSamplesRendered_loop, &needNewFrame ) ) != IVAS_ERR_OK )

                {
+8 −0
Original line number Diff line number Diff line
@@ -3577,12 +3577,20 @@ Word16 div_l( Word32 L_num, Word16 den )

    if ( den == (Word16) 0 )
    {
#ifdef IVAS_FLOAT_FIXED
        /* NOTE: This is just for temporary usage for identifying crashes */
        assert( 0 );
#endif // IVAS_FLOAT_FIXED
        /* printf("Division by 0 in div_l, Fatal error in "); printStack(); */
        exit( -1 );
    }

    if ( ( L_num < (Word32) 0 ) || ( den < (Word16) 0 ) )
    {
#ifdef IVAS_FLOAT_FIXED
        /* NOTE: This is just for temporary usage for identifying crashes */
        assert( 0 );
#endif // IVAS_FLOAT_FIXED
        /* printf("Division Error in div_l, Fatal error in "); printStack(); */
        exit( -1 );
    }
+8 −6
Original line number Diff line number Diff line
@@ -257,9 +257,9 @@ void Inac_switch_ematch_ivas_fx(
            {
                FOR(j = 0; j < 8; j++)
                {
                    L_tmp = L_mult(*pt_exc, ftmp);  /* Q_exc*Q0 -> Q(Q_exc+1) */
                    L_tmp = L_shl(L_tmp, add(exp, 15));  /* Q(Q_exc+1) -> Q(16+Q_exc)*/
                    *pt_exc = round_fx(L_tmp);
                    L_tmp = L_mult0(*pt_exc, ftmp);
                    L_tmp = L_shl(L_tmp, add(exp, 15));  /* Q(Q_exc) -> Q(15+Q_exc)*/
                    *pt_exc = round_fx(L_tmp);           /*Q_exc - 1*/
                    pt_exc++;
                }
            }
@@ -267,15 +267,17 @@ void Inac_switch_ematch_ivas_fx(
            {
                FOR(j = 0; j < 16; j++)
                {
                    L_tmp = L_mult(*pt_exc,ftmp);       /* Q_exc*Q0 -> Q(Q_exc+1) */
                    L_tmp = L_shl(L_tmp, add(exp,15));  /* Q(Q_exc+1) -> Q(16+Q_exc)*/
                    *pt_exc = round_fx(L_tmp);          /*Q_exc*/
                    L_tmp = L_mult0(*pt_exc,ftmp);
                    L_tmp = L_shl(L_tmp, add(exp,15));  /* Q(Q_exc) -> Q(15+Q_exc)*/
                    *pt_exc = round_fx(L_tmp);          /*Q_exc - 1*/
                    pt_exc++;
                }
            }
        }

        /* Going back to time */
        Scale_sig( dct_exc_tmp, 240, 1 ); // Q_exc
        Scale_sig( exc2, 240, 1 );        // Q_exc
        edct_16fx(dct_exc_tmp, exc2, L_frame, 5, element_mode);
    }

+21 −22
Original line number Diff line number Diff line
@@ -61,7 +61,6 @@ void hf_synth_init_fx(

  return;
}

void hf_synth_reset_fx(
  ZERO_BWE_DEC_HANDLE hBWE_zero /* o  : zero BWE decoder handle */
)
+1 −0
Original line number Diff line number Diff line
@@ -35,6 +35,7 @@ void vlpc_2st_dec(

    FOR (i=0; i<M; i++)
    {

#ifdef FIX_SATURATION_725
        //#ifdef DEBUGGING  to be removed
        assert( abs_s( xq[i] ) <= 32 );                                           /* If xq > 32 for IVAS, we might need a different loop implementation */
+3 −3

File changed.

Contains only whitespace changes.

+2 −2

File changed.

Contains only whitespace changes.

+1 −1

File changed.

Contains only whitespace changes.

Loading