st/omx: fix gcc warnings
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Thu, 16 Apr 2020 12:38:06 +0000 (14:38 +0200)
committerPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Tue, 21 Apr 2020 07:16:28 +0000 (09:16 +0200)
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4584>

src/gallium/state_trackers/omx/vid_dec_h264_common.c

index 4190251c90d3447b74b527edffd89d2042f6d225..4074099cdd3f1998b31612b9f838471c8c801439 100644 (file)
@@ -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);