ref: b042935693914fffb930e38facca1bac80ece1a5
parent: 1bf32bb5ac1b55c5c383024426bb0adad72a95a8
author: Jean-Marc Valin <[email protected]>
date: Sat May 4 22:22:06 EDT 2013
Fixes missing initialization in OpusMSEncoder Problem found using valgrind.
--- a/src/opus_multistream_encoder.c
+++ b/src/opus_multistream_encoder.c
@@ -105,6 +105,8 @@
st->layout.nb_channels = channels;
st->layout.nb_streams = streams;
st->layout.nb_coupled_streams = coupled_streams;
+ st->subframe_mem[0]=st->subframe_mem[1]=st->subframe_mem[2]=0;
+ OPUS_CLEAR(&st->analysis,1);
st->bitrate_bps = OPUS_AUTO;
st->variable_duration = OPUS_FRAMESIZE_ARG;