Commit 95009451 authored by vaclav's avatar vaclav
Browse files

fix

parent 1afe8395
Loading
Loading
Loading
Loading
Loading
+20 −0
Original line number Diff line number Diff line
@@ -1321,6 +1321,26 @@ ivas_error acelp_core_dec_fx(
                move16();
            }
        }

        test();
        test();
        test();
        test();
        test();
        IF( st_fx->flag_cna == 0 && EQ_16( st_fx->L_frame, L_FRAME16k ) && EQ_16( st_fx->last_flag_cna, 1 ) && ( ( st_fx->last_core == ACELP_CORE && NE_16( st_fx->last_coder_type, AUDIO ) ) || EQ_16( st_fx->last_core, AMR_WB_CORE ) ) )
        {
            FOR( i = 0; i < st_fx->L_frame / 2; i++ )
            {
                syn_fx[i] = add( syn_fx[i], shr_r( st_fx->hFdCngDec->hFdCngCom->olapBufferSynth2[i + 5 * st_fx->L_frame / 4], negate( st_fx->Q_syn ) ) );
                move16();
            }
        }

        test();
        IF( st_fx->flag_cna == 0 || EQ_16( st_fx->coder_type, AUDIO ) )
        {
            set16_fx( st_fx->hFdCngDec->hFdCngCom->olapBufferSynth2, 0, st_fx->hFdCngDec->hFdCngCom->fftlen );
        }
    }

    /*----------------------------------------------------------------*