OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e1813a2
)
assert() and note about odd len.
author
Michael Niedermayer
<michaelni@gmx.at>
Sat, 9 Feb 2008 14:45:36 +0000
(14:45 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sat, 9 Feb 2008 14:45:36 +0000
(14:45 +0000)
Originally committed as revision 11884 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/flacenc.c
patch
|
blob
|
history
diff --git
a/libavcodec/flacenc.c
b/libavcodec/flacenc.c
index
4f273b7
..
469b461
100644
(file)
--- 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);