[Speex-dev] bits.c problem

I'm trying to use speex on OMAP's DSP using dsp gateway, and have some
questions. The code almost works (within few next days I'll post a some kind
tutorial and patches), but it seems to be a little bug in bits.c. The code
looks like this
void speex_bits_read_from(SpeexBits *bits, char *chars, int len)
{
////////////////// bla-bla-bla ///////////////////
for (i=0;i<len;i++)
bits->chars[i]=chars[i];
bits->nbBits=len<<3; //!!!!!!!!!!!!!!!!!!!
bits->charPtr=0;
bits->bitPtr=0;
bits->overflow=0;
}
What is bits->nbBits=len<<3 ? Shouldn't it be bits->nbBits=len<<3
LOG2_BITS_PER_CHAR ?
And another question. What is the difference between functions
speex_bits_read_from and speex_bits_read_whole_bytes ?
Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xiph.org/pipermail/speex-dev/attachments/20060802/cadc2ff2/attachment.html