X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Flpc.c;h=07fc29265ac039a36f79c947d269f73a225c9ae2;hb=6253f511e053de20eb01013e93c1084f19df9ef6;hp=deb02e7f5825a46f7e3d56fedf4fca5aab1c4dfb;hpb=3d2267019cd7ba318d01babc14fdc82ab5496a7c;p=ffmpeg diff --git a/libavcodec/lpc.c b/libavcodec/lpc.c index deb02e7f582..07fc29265ac 100644 --- a/libavcodec/lpc.c +++ b/libavcodec/lpc.c @@ -37,13 +37,19 @@ static void lpc_apply_welch_window_c(const int32_t *data, int len, double w; double c; - /* The optimization in commit fa4ed8c does not support odd len. - * If someone wants odd len extend that change. */ - av_assert2(!(len & 1)); - n2 = (len >> 1); c = 2.0 / (len - 1.0); + if (len & 1) { + for(i=0; i