ref: 64a4f890e501ddb74e2f68cee4434d5d713d1d59
parent: 013735091f819905f9437b2db891b32a6f6ae3a7
author: Jean-Marc Valin <[email protected]>
date: Sat Apr 29 20:56:12 EDT 2017
oops
--- a/src/opusenc.c
+++ b/src/opusenc.c
@@ -283,7 +283,7 @@
}
/* If we've reached the end of the buffer, move everything back to the front. */
if (enc->buffer_end == BUFFER_SAMPLES) {
- memmove(enc->buffer, &enc->buffer[enc->channels*enc->buffer_start], enc->channels*(enc->buffer_end-enc->buffer_start));
+ memmove(enc->buffer, &enc->buffer[enc->channels*enc->buffer_start], enc->channels*(enc->buffer_end-enc->buffer_start)*sizeof(*enc->buffer));
enc->buffer_end -= enc->buffer_start;
enc->buffer_start = 0;
}