From e1834d151286400426a07f33effde25f4e14cd0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Mon, 25 Jan 2016 17:21:24 +0100 Subject: [PATCH] gst: Fix unintialized variable warnings While cross-compiling with Linaro GCC 5.1-2015.08, it complained about a couple unitialized variables. This patch initializes them to zero. https://bugzilla.gnome.org/show_bug.cgi?id=761094 --- gst/isomp4/qtdemux.c | 2 +- gst/rtp/gstrtph261pay.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gst/isomp4/qtdemux.c b/gst/isomp4/qtdemux.c index 77bb73e8d9..1aaafa8619 100644 --- a/gst/isomp4/qtdemux.c +++ b/gst/isomp4/qtdemux.c @@ -3245,7 +3245,7 @@ qtdemux_parse_cenc_aux_info (GstQTDemux * qtdemux, QtDemuxStream * stream, for (i = 0; i < sample_count; ++i) { GstStructure *properties; - guint16 n_subsamples; + guint16 n_subsamples = 0; guint8 *data; guint iv_size; GstBuffer *buf; diff --git a/gst/rtp/gstrtph261pay.c b/gst/rtp/gstrtph261pay.c index 7cdd323929..ebcf80e4a2 100644 --- a/gst/rtp/gstrtph261pay.c +++ b/gst/rtp/gstrtph261pay.c @@ -867,7 +867,7 @@ gst_rtp_h261_packetize_and_push (GstRtpH261Pay * pay, GstBuffer * buffer, gst_rtp_buffer_calc_payload_len (GST_RTP_BASE_PAYLOAD_MTU (pay) - GST_RTP_H261_PAYLOAD_HEADER_LEN, 0, 0); guint startpos; - gint num_gobs; + gint num_gobs = 0; Gob gobs[MAX_NUM_GOB]; Gob *gob; Macroblock last_mb_in_previous_packet = { 0 };