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
This commit is contained in:
Tim-Philipp Müller 2016-02-01 13:22:10 +00:00 committed by Víctor Manuel Jáquez Leal
parent 24168a2093
commit ab28dea7c1
2 changed files with 2 additions and 2 deletions

View file

@ -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;

View file

@ -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);