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 ? Thanks, Phil Phil DiFrancesca 011(66)2-746-9088 011(66)80-557-8954 Mobile psd at island-sys.com
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