mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-06-29 12:26:20 +08:00
assert() and note about odd len.
Originally committed as revision 11884 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@ -593,6 +593,9 @@ static void apply_welch_window(const int32_t *data, int len, double *w_data)
|
|||||||
double w;
|
double w;
|
||||||
double c;
|
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);
|
n2 = (len >> 1);
|
||||||
c = 2.0 / (len - 1.0);
|
c = 2.0 / (len - 1.0);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user