Commit a4195e68 authored by Michael Niedermayer's avatar Michael Niedermayer

assert() and note about odd len.

Originally committed as revision 11884 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent e1813a2f
......@@ -593,6 +593,9 @@ static void apply_welch_window(const int32_t *data, int len, double *w_data)
double w;
double c;
assert(!(len&1)); //the optimization in r11881 does not support odd len
//if someone wants odd len extend the change in r11881
n2 = (len >> 1);
c = 2.0 / (len - 1.0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment