diff --git a/libavcodec/opus_pvq.c b/libavcodec/opus_pvq.c index 2fb276099b..f98b85d36f 100644 --- a/libavcodec/opus_pvq.c +++ b/libavcodec/opus_pvq.c @@ -381,8 +381,9 @@ static float ppp_pvq_search_c(float *X, int *y, int K, int N) } while (K) { - int max_idx = 0, max_den = 1, phase = FFSIGN(K); + int max_idx = 0, phase = FFSIGN(K); float max_num = 0.0f; + float max_den = 1.0f; y_norm += 1.0f; for (i = 0; i < N; i++) {