search for: speex_verify_decod

Displaying 2 results from an estimated 2 matches for "speex_verify_decod".

Did you mean: speex_verify_decode
2004 Aug 06
2
API suggestions
...to tell in advance if the decoder has enough information in the speex_bits buffer to decode a full frame of audio. Sure, after a decode attempt one could see if speex_bits_remaining() returns a negative value, but this POST DECODE check would not allow to retry decoding gracefully. A function like speex_verify_decode(st, &speex_bits) could perform two functions: - verify the syntax of the bitstream - verify that the input data has sufficient length for decoding a frame - but NOT actually perform any decoding In case either of these conditions are not met, the decoder could (for example) try to remedy th...
2004 Aug 06
0
API suggestions
...der > has enough information in the speex_bits buffer to decode a full > frame of audio. Sure, after a decode attempt one could see if > speex_bits_remaining() returns a negative value, but this POST > DECODE check would not allow to retry decoding gracefully. > > A function like speex_verify_decode(st, &speex_bits) could > perform two functions: > - verify the syntax of the bitstream > - verify that the input data has sufficient length for decoding > a frame > - but NOT actually perform any decoding The problem is that this is not possible. The reason is that if you cut...