Commit 9ae3c7f7 authored by Fabian Bauer's avatar Fabian Bauer
Browse files

arith_coder_fx.c : completed void tcx_arith_scale_envelope

parent e2828fc0
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -424,9 +424,13 @@ void tcx_arith_scale_envelope(
    tmp = getScaleFactor32( env, L_frame );
    *s_env_e = sub( add( 15, iscale_e ), tmp );
    move16();
#ifdef ISSUE_1836_replace_overflow_libcom
    a = L_shl_sat( 1265000, sub( 15, *s_env_e ) );
#else
    BASOP_SATURATE_WARNING_OFF_EVS;
    a = L_shl_o( 1265000, sub( 15, *s_env_e ), &Overflow );
    BASOP_SATURATE_WARNING_ON_EVS;
#endif

    FOR( k = 0; k < L_frame; k++ )
    {