[FFmpeg-cvslog] r11884 - trunk/libavcodec/flacenc.c
michael
subversion
Sat Feb 9 15:45:37 CET 2008
Author: michael
Date: Sat Feb 9 15:45:36 2008
New Revision: 11884
Log:
assert() and note about odd len.
Modified:
trunk/libavcodec/flacenc.c
Modified: trunk/libavcodec/flacenc.c
==============================================================================
--- trunk/libavcodec/flacenc.c (original)
+++ trunk/libavcodec/flacenc.c Sat Feb 9 15:45:36 2008
@@ -593,6 +593,9 @@ static void apply_welch_window(const int
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);
More information about the ffmpeg-cvslog
mailing list