fix opus early end on long tracks - release

This commit is contained in:
Philippe G
2020-08-10 13:05:51 -07:00
parent 683ec77424
commit a87066fef6
3 changed files with 1 additions and 2 deletions

Binary file not shown.

Binary file not shown.

View File

@@ -101,7 +101,7 @@ static int _read_cb(void *datasource, char *ptr, int size) {
bytes = min(_buf_used(streambuf), _buf_cont_read(streambuf));
bytes = min(bytes, size);
memcpy(ptr, streambuf->readp, bytes);
_buf_inc_readp(streambuf, bytes);
@@ -171,7 +171,6 @@ static decode_state opus_decompress(void) {
write_buf = process.inbuf;
);
//printf("processing %u frames\n", frames);
// write the decoded frames into outputbuf then unpack them (they are 16 bits)
n = OP(u, read, u->of, (opus_int16*) write_buf, frames * channels, NULL);