summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2016-02-01 13:22:10 +0000
committerVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>2016-02-02 17:19:42 +0100
commitab28dea7c1e0ec284def41713c9e2c23169c607a (patch)
treeb4940c5fcbe2236d6b30423a3e4e6c91293c9b78
parent24168a2093b9a9380d6b47d1dc2600545489f6b7 (diff)
downloadgst-vaapi-ab28dea7c1e0ec284def41713c9e2c23169c607a.tar.gz
Fix some more compiler warning
Two (false) compiler warnings about variables potentially being used uninitialized, and one about a variable being set but not used. https://bugzilla.gnome.org/show_bug.cgi?id=759192
-rw-r--r--gst-libs/gst/vaapi/gstvaapidecoder_h265.c2
-rw-r--r--gst-libs/gst/vaapi/gstvaapiencoder_h264.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapidecoder_h265.c b/gst-libs/gst/vaapi/gstvaapidecoder_h265.c
index 26b8a4a6..4ac3cdc0 100644
--- a/gst-libs/gst/vaapi/gstvaapidecoder_h265.c
+++ b/gst-libs/gst/vaapi/gstvaapidecoder_h265.c
@@ -603,7 +603,7 @@ get_vps (GstVaapiDecoderH265 * decoder)
static guint
get_max_dec_frame_buffering (GstH265SPS * sps)
{
- guint max_dec_frame_buffering;
+ G_GNUC_UNUSED guint max_dec_frame_buffering; /* FIXME */
GstVaapiLevelH265 level;
const GstVaapiH265LevelLimits *level_limits;
diff --git a/gst-libs/gst/vaapi/gstvaapiencoder_h264.c b/gst-libs/gst/vaapi/gstvaapiencoder_h264.c
index 3ad9378b..db65b2c0 100644
--- a/gst-libs/gst/vaapi/gstvaapiencoder_h264.c
+++ b/gst-libs/gst/vaapi/gstvaapiencoder_h264.c
@@ -1511,7 +1511,7 @@ add_packed_sei_header (GstVaapiEncoderH264 * encoder,
VAEncPackedHeaderParameterBuffer packed_sei_param = { 0 };
guint32 data_bit_size;
guint8 buf_period_payload_size = 0, pic_timing_payload_size = 0;
- guint8 *data, *buf_period_payload, *pic_timing_payload;
+ guint8 *data, *buf_period_payload = NULL, *pic_timing_payload = NULL;
gboolean need_buf_period, need_pic_timing;
gst_bit_writer_init (&bs_buf_period, 128 * 8);