frontends/omx/h265: Check the pps set before the scaling data
Certain clip has no scaling list data in the pps set Signed-off-by: Leo Liu <leo.liu@amd.com> Reviewed-by: Boyuan Zhang <Boyuan.Zhang@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7240>
This commit is contained in:
@@ -598,6 +598,9 @@ static void picture_parameter_set(vid_dec_PrivateType *priv,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (vl_vlc_bits_left(&rbsp->nal) == 0)
|
||||||
|
return;
|
||||||
|
|
||||||
/* pps_scaling_list_data_present_flag */
|
/* pps_scaling_list_data_present_flag */
|
||||||
if (vl_rbsp_u(rbsp, 1))
|
if (vl_rbsp_u(rbsp, 1))
|
||||||
scaling_list_data(priv, rbsp, sps);
|
scaling_list_data(priv, rbsp, sps);
|
||||||
|
Reference in New Issue
Block a user