ref: b8890d11a26e65d4c81fd35155ad494e0583bb1d
parent: 1bee6b9313588b60fd25780221b7370fc9ab93a8
author: Jean-Marc Valin <jmvalin@jmvalin.ca>
date: Fri May 5 21:26:46 EDT 2017
oops
--- a/src/opusenc.c
+++ b/src/opusenc.c
@@ -623,7 +623,7 @@
if (!enc->streams->stream_is_init) init_stream(enc);
shift_buffer(enc);
/* FIXME: Do LPC extension instead. */
- memset(&enc->buffer[enc->channels*enc->buffer_end], 0, pad_samples*enc->channels);
+ memset(&enc->buffer[enc->channels*enc->buffer_end], 0, pad_samples*enc->channels*sizeof(enc->buffer[0]));
extend_signal(&enc->buffer[enc->channels*enc->buffer_end], enc->buffer_end, LPC_PADDING, enc->channels);
enc->decision_delay = 0;
enc->buffer_end += pad_samples;