Commit 9a0f9bba authored by jm's avatar jm
Browse files

oops...


git-svn-id: http://svn.xiph.org/trunk/speex@5239 0101bb08-14d6-0310-b084-bc0e0c8e3800
parent 6bb8afa4
......@@ -166,8 +166,8 @@ void speex_bits_read_whole_bytes(SpeexBits *bits, char *bytes, int len)
int speex_bits_write(SpeexBits *bits, char *bytes, int max_len)
{
int i;
char bytePtr, bitPtr, nbBits;
int bytePtr, bitPtr, nbBits;
/* Insert terminator, but save the data so we can put it back after */
bitPtr=bits->bitPtr;
bytePtr=bits->bytePtr;
......@@ -176,7 +176,7 @@ int speex_bits_write(SpeexBits *bits, char *bytes, int max_len)
bits->bitPtr=bitPtr;
bits->bytePtr=bytePtr;
bits->nbBits=nbBits;
if (max_len > ((bits->nbBits+7)>>3))
max_len = ((bits->nbBits+7)>>3);
for (i=0;i<max_len;i++)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment