Closed romanbsd closed 5 years ago
@romanbsd thanks for the patch, do you have a reproducer for this?
#include <speex/speex_buffer.h>
int main(void) {
char data[1] = {'a'}, out[10];
SpeexBuffer *buf = speex_buffer_init(100);
speex_buffer_write(buf, data, 1);
speex_buffer_read(buf, out, 10);
speex_buffer_destroy(buf);
return 0;
}
If we have less than requested, the difference between that and available should be used.