Commit 9de90db9 authored by Archit Tamarapu's avatar Archit Tamarapu
Browse files

[fix] incorrect value used in assert for LFE to binaural delaybuffer

parent 40f1b098
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -5758,8 +5758,7 @@ static ivas_error renderLfeToBinaural(
    num_cpy_smpl_prev_frame = mcInput->binauralDelaySmp;
    num_cpy_smpl_cur_frame = frame_size - num_cpy_smpl_prev_frame;

    /* Assuming LFE should be delayed by less that the duration of one frame */
    assert( mcInput->binauralDelaySmp < frame_size );
    assert( mcInput->binauralDelaySmp <= MAX_BIN_DELAY_SAMPLES );

    /* Get delayed LFE signal from previous frame, apply gain and save in tmp buffer */
    v_multc( mcInput->lfeDelayBuffer, gain, tmpLfeBuffer, num_cpy_smpl_prev_frame );