[Speex-dev] Quick question

Jean-Marc Valin jean-marc.valin at usherbrooke.ca
Mon Jun 8 04:57:59 PDT 2009



Phil DiFrancesca a écrit :
> Hi,
> 
>    I am developing my own file format and I have a question about the  
> standard encode method:
> 
> speex_encode_int(st, raw, &bits);
> nbBytes = speex_bits_write(&bits, s+1, 255);
> 
>    My question is : Will nbBytes ever be 0 ?  (even with an empty  
> frame of all 0's passed to speex_encode_int)  In other words is it  
> possible for the encoder to return
> a compressed bit stream that is 0 bytes long ?

No. Assuming there's no error in the encoding, the smallest it could
ever do (and only if you allow it) is one byte.

	Jean-Marc


More information about the Speex-dev mailing list