Mesa (master): st/omx: fix gcc warnings

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Apr 21 07:37:29 UTC 2020


Module: Mesa
Branch: master
Commit: 56f174d14eb4bdac07ae34b0538cfcc217d7eca5
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=56f174d14eb4bdac07ae34b0538cfcc217d7eca5

Author: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer at amd.com>
Date:   Thu Apr 16 14:38:06 2020 +0200

st/omx: fix gcc warnings

Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4584>

---

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



More information about the mesa-commit mailing list