Commit f233f1a2 authored by Jan Kiene's avatar Jan Kiene
Browse files

run configureFdCngEnc() at first frame in pre processing

parent c0dae506
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -553,7 +553,7 @@ ivas_error pre_proc_front_ivas(
     * Adjust FD-CNG Noise Estimator
     *----------------------------------------------------------------*/

    if ( st->hFdCngEnc != NULL && ( last_element_brate != element_brate || st->last_bwidth != st->bwidth ) )
    if ( st->hFdCngEnc != NULL && ( st->ini_frame == 0 || last_element_brate != element_brate || st->last_bwidth != st->bwidth ) )
    {
        configureFdCngEnc( st->hFdCngEnc, max( st->input_bwidth, WB ), st->bits_frame_nominal * FRAMES_PER_SEC );
        if ( hCPE != NULL )