From 56f174d14eb4bdac07ae34b0538cfcc217d7eca5 Mon Sep 17 00:00:00 2001 From: Pierre-Eric Pelloux-Prayer Date: Thu, 16 Apr 2020 14:38:06 +0200 Subject: [PATCH] st/omx: fix gcc warnings MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Reviewed-by: Marek Olšák Part-of: --- src/gallium/state_trackers/omx/vid_dec_h264_common.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gallium/state_trackers/omx/vid_dec_h264_common.c b/src/gallium/state_trackers/omx/vid_dec_h264_common.c index 4190251c90d..4074099cdd3 100644 --- a/src/gallium/state_trackers/omx/vid_dec_h264_common.c +++ b/src/gallium/state_trackers/omx/vid_dec_h264_common.c @@ -109,7 +109,7 @@ void vid_dec_h264_EndFrame(vid_dec_PrivateType *priv) struct dpb_list *entry; struct pipe_video_buffer *tmp; bool top_field_first; - OMX_TICKS timestamp; + OMX_TICKS timestamp = 0; if (!priv->frame_started) return; @@ -303,11 +303,11 @@ static void seq_parameter_set(vid_dec_PrivateType *priv, struct vl_rbsp *rbsp) vl_rbsp_u(rbsp, 1); /* pic_width_in_mbs_minus1 */ - int pic_width_in_samplesl = (vl_rbsp_ue(rbsp) + 1) * 16; + ASSERTED int pic_width_in_samplesl = (vl_rbsp_ue(rbsp) + 1) * 16; assert(pic_width_in_samplesl); /* pic_height_in_map_units_minus1 */ - int pic_height_in_map_units = vl_rbsp_ue(rbsp) + 1; + ASSERTED int pic_height_in_map_units = vl_rbsp_ue(rbsp) + 1; assert(pic_height_in_map_units); sps->frame_mbs_only_flag = vl_rbsp_u(rbsp, 1); -- 2.30.2