From: Pierre-Eric Pelloux-Prayer Date: Thu, 16 Apr 2020 12:38:06 +0000 (+0200) Subject: st/omx: fix gcc warnings X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=56f174d14eb4bdac07ae34b0538cfcc217d7eca5;p=mesa.git st/omx: fix gcc warnings Reviewed-by: Marek Olšák Part-of: --- 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);