diff --git a/libavcodec/flacenc.c b/libavcodec/flacenc.c index 59192a1e3e..4f273b7e04 100644 --- a/libavcodec/flacenc.c +++ b/libavcodec/flacenc.c @@ -595,11 +595,14 @@ static void apply_welch_window(const int32_t *data, int len, double *w_data) n2 = (len >> 1); c = 2.0 / (len - 1.0); + + w_data+=n2; + data+=n2; for(i=0; i