]> code.ossystems Code Review - openembedded-core.git/blob
59addaed4314541a3ef409fc8abdea2906e7d04a
[openembedded-core.git] /
1 From 63a838d9ae2be480be8d28d6f51762d288b2a54a Mon Sep 17 00:00:00 2001
2 From: Andre McCurdy <armccurdy@gmail.com>
3 Date: Tue, 26 Jan 2016 14:47:36 -0800
4 Subject: [PATCH] fix maybe-uninitialized warnings when compiling with -Os
5
6 Upstream-Status: Pending
7
8 Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
9 ---
10  gst/isomp4/qtdemux.c    | 1 +
11  gst/rtp/gstrtph261pay.c | 2 +-
12  2 files changed, 2 insertions(+), 1 deletion(-)
13
14 diff --git a/gst/isomp4/qtdemux.c b/gst/isomp4/qtdemux.c
15 index 77bb73e..1fc60ac 100644
16 --- a/gst/isomp4/qtdemux.c
17 +++ b/gst/isomp4/qtdemux.c
18 @@ -3269,6 +3269,7 @@ qtdemux_parse_cenc_aux_info (GstQTDemux * qtdemux, QtDemuxStream * stream,
19      gst_structure_set (properties, "iv", GST_TYPE_BUFFER, buf, NULL);
20      size = info_sizes[i];
21      if (size > iv_size) {
22 +      n_subsamples = 0;
23        if (!gst_byte_reader_get_uint16_be (br, &n_subsamples)
24            || !(n_subsamples > 0)) {
25          gst_structure_free (properties);
26 diff --git a/gst/rtp/gstrtph261pay.c b/gst/rtp/gstrtph261pay.c
27 index 7cdd323..ebcf80e 100644
28 --- a/gst/rtp/gstrtph261pay.c
29 +++ b/gst/rtp/gstrtph261pay.c
30 @@ -867,7 +867,7 @@ gst_rtp_h261_packetize_and_push (GstRtpH261Pay * pay, GstBuffer * buffer,
31        gst_rtp_buffer_calc_payload_len (GST_RTP_BASE_PAYLOAD_MTU (pay) -
32        GST_RTP_H261_PAYLOAD_HEADER_LEN, 0, 0);
33    guint startpos;
34 -  gint num_gobs;
35 +  gint num_gobs = 0;
36    Gob gobs[MAX_NUM_GOB];
37    Gob *gob;
38    Macroblock last_mb_in_previous_packet = { 0 };
39 -- 
40 1.9.1
41