Allowing maxCompressedBytes to be as large as one wants

Though the encoder will still never use more than 1275 bytes
This commit is contained in:
Jean-Marc Valin 2011-02-04 21:50:54 -05:00
parent 0b405d1170
commit b3dae4b026
2 changed files with 3 additions and 3 deletions

View file

@ -222,7 +222,7 @@ EXPORT void celt_encoder_destroy(CELTEncoder *st);
* the length returned be somehow transmitted to the decoder. Otherwise, no
* decoding is possible.
*/
EXPORT int celt_encode_float(CELTEncoder *st, const float *pcm, int frame_size, unsigned char *compressed, int nbCompressedBytes);
EXPORT int celt_encode_float(CELTEncoder *st, const float *pcm, int frame_size, unsigned char *compressed, int maxCompressedBytes);
/** Encodes a frame of audio.
@param st Encoder state
@ -238,7 +238,7 @@ EXPORT int celt_encode_float(CELTEncoder *st, const float *pcm, int frame_size,
* the length returned be somehow transmitted to the decoder. Otherwise, no
* decoding is possible.
*/
EXPORT int celt_encode(CELTEncoder *st, const celt_int16 *pcm, int frame_size, unsigned char *compressed, int nbCompressedBytes);
EXPORT int celt_encode(CELTEncoder *st, const celt_int16 *pcm, int frame_size, unsigned char *compressed, int maxCompressedBytes);
/** Query and set encoder parameters
@param st Encoder state