]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/flacenc.c
Hardcode register to prevent aparent miscompilation.
[ffmpeg] / libavcodec / flacenc.c
index 4f273b7e04e356f2bc0231b3cadcb21bf153abd0..469b46115c1ab24ae5424842436333de11d57b39 100644 (file)
@@ -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);