diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2008-02-09 14:45:36 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2008-02-09 14:45:36 +0000 |
commit | a4195e68b6d057fb047ef5ae9b7a76377c58ad62 (patch) | |
tree | 9bd18e0695775f5d708f4cc50e49eb141132db64 | |
parent | e1813a2f1e6db6635b4baa25211103389cbc7785 (diff) | |
download | ffmpeg-a4195e68b6d057fb047ef5ae9b7a76377c58ad62.tar.gz |
assert() and note about odd len.
Originally committed as revision 11884 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/flacenc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/flacenc.c b/libavcodec/flacenc.c index 4f273b7e04..469b46115c 100644 --- a/libavcodec/flacenc.c +++ b/libavcodec/flacenc.c @@ -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); |