# HG changeset patch # User michael # Date 1202568336 0 # Node ID 56592543346cbdd500b8a655060b4c0111c15ba9 # Parent 575e0a847f0c523f2852366e1f25decc7ab9b05f assert() and note about odd len. diff -r 575e0a847f0c -r 56592543346c flacenc.c --- 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);