Mercurial > libavcodec.hg
changeset 6341:56592543346c libavcodec
assert() and note about odd len.
author | michael |
---|---|
date | Sat, 09 Feb 2008 14:45:36 +0000 |
parents | 575e0a847f0c |
children | 644cc66607b2 |
files | flacenc.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
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);