diff flacenc.c @ 6341:56592543346c libavcodec

assert() and note about odd len.
author michael
date Sat, 09 Feb 2008 14:45:36 +0000
parents 47a97ef90720
children 48759bfbd073
line wrap: on
line diff
--- a/flacenc.c	Sat Feb 09 13:53:15 2008 +0000
+++ b/flacenc.c	Sat Feb 09 14:45:36 2008 +0000
@@ -593,6 +593,9 @@
     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);