mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 08:40:11 +01:00
st/omx: fix gcc warnings
Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4584>
This commit is contained in:
parent
07071cac7b
commit
56f174d14e
1 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue