From fa4ed8c10af49ca22ead46ee6fa4e51c8327a7ff Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 9 Feb 2008 03:42:48 +0000 Subject: [PATCH] optimize apply_welch_window() Originally committed as revision 11881 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/flacenc.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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