Displaying 1 result from an estimated 1 matches for "stillhaveinput".
2004 Aug 06
0
Encode-Decode Problem
I have non terminate loop when decode speex bits
stream.
These are my pseudocode for encoding and decoding
-- Encode --
while(stillhaveinput)
{
speex_encode(enc_state, curr_spx_frame, &bits);
}
speex_bits_insert_terminator(&bits);
speex_bits_write(&bits,(char *)(pBufferOut),MAX_LEN);
-- Decode (these code loop forever) --
speex_bits_read_from(&bits, (char *) pBuf,act_length);
result=speex_decode(dec_state, &bits,...