X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Faacenc_ltp.c;h=674a2a06807c97bfe7a6e21c23ec9dc473ff0489;hb=9f1bca4e6f9094c6e887dc646f31fd6e8937b421;hp=1bec85b9e393621ff39b10cbb78e83295454dd51;hpb=a308324ef7e5d4dbdb2ae95b526ac3bb8294f7cc;p=ffmpeg diff --git a/libavcodec/aacenc_ltp.c b/libavcodec/aacenc_ltp.c index 1bec85b9e39..674a2a06807 100644 --- a/libavcodec/aacenc_ltp.c +++ b/libavcodec/aacenc_ltp.c @@ -74,8 +74,8 @@ void ff_aac_ltp_insert_new_frame(AACEncContext *s) static void get_lag(float *buf, const float *new, LongTermPrediction *ltp) { - int i, j, lag, max_corr = 0; - float max_ratio; + int i, j, lag = 0, max_corr = 0; + float max_ratio = 0.0f; for (i = 0; i < 2048; i++) { float corr, s0 = 0.0f, s1 = 0.0f; const int start = FFMAX(0, i - 1024);