speexenc: initialise variable before adding to it

This commit is contained in:
Tim-Philipp Müller 2011-09-29 23:21:46 +01:00
parent c5354bee04
commit ca77c96c51

View file

@ -538,7 +538,7 @@ gst_speex_enc_encode (GstSpeexEnc * enc, GstBuffer * buf)
{
gint frame_size = enc->frame_size;
gint bytes = frame_size * 2 * enc->channels, samples, size;
gint outsize, written, dtx_ret;
gint outsize, written, dtx_ret = 0;
guint8 *data;
GstBuffer *outbuf;
GstFlowReturn ret = GST_FLOW_OK;