speexenc: initialise variable before adding to it
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Thu, 29 Sep 2011 22:21:46 +0000 (23:21 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Thu, 29 Sep 2011 22:21:46 +0000 (23:21 +0100)
ext/speex/gstspeexenc.c

index a658e9b..1c6f71c 100644 (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;