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:
Leo Liu
2020-10-20 18:51:23 -04:00
committed by Marge Bot
parent 08762d5171
commit a071590b1d

View File

@@ -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 */
if (vl_rbsp_u(rbsp, 1))
scaling_list_data(priv, rbsp, sps);