Fixes missing initialization in OpusMSEncoder

Problem found using valgrind.
This commit is contained in:
Jean-Marc Valin 2013-05-05 02:22:06 -04:00
parent 1bf32bb5ac
commit b042935693

View file

@ -105,6 +105,8 @@ int opus_multistream_encoder_init(
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;