Commit 1b260941 authored by Sandesh Venkatesh's avatar Sandesh Venkatesh
Browse files

Fix for ltv crashes observed with -10dB files

parent ac6159c8
Loading
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1037,7 +1037,8 @@ ivas_error ivas_jbm_dec_tc_fx(
            move16();
            nchan_out = nchan_transport;
            move16();
            Word16 Q_p_output = max( 3, sub( L_norm_arr( p_output_fx[sba_ch_idx], imult1616( output_frame, nchan_transport ) ), 1 ) );
            Word16 Q_p_output = s_max( 3, sub( L_norm_arr( p_output_fx[sba_ch_idx], imult1616( output_frame, nchan_transport ) ), 1 ) );
            Q_p_output = s_min( Q_p_output, 19 ); // to restrict Q-factor of p_ouptut to Q30
            FOR( ch = 0; ch < nchan_transport; ch++ )
            {
                Scale_sig32( p_output_fx[sba_ch_idx + ch], output_frame, Q_p_output ); // Q_p_output + Q11
+1 −1
Original line number Diff line number Diff line
@@ -505,7 +505,7 @@ void ivas_sba_mix_matrix_determiner_fx(
                temp_fx = MAX16B; /*Q0*/
                move32();
            }
            ELSE IF( LT_32( temp_fx, L_negate( PCM16_TO_FLT_FAC_FX ) ) )
            ELSE IF( LT_32( temp_fx, -( PCM16_TO_FLT_FAC_FX ) ) )
            {
                temp_fx = -( PCM16_TO_FLT_FAC_FX ); /*Q0*/
                move32();