Some problematic H265 stream may miss the reference frame in the DPB,
and get some message like: "No short term reference picture for xxx".
So there may be empty entries in ref_pic_list0/1 when passing to
decode_slice() function of sub class. We need to check the NULL pointer.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2018>
GstVaH265Dec *self = GST_VA_H265_DEC (decoder);
guint8 i;
+ if (!picture)
+ return 0xFF;
+
for (i = 0; i < 15; i++) {
VAPictureHEVC *ref_va_pic = &self->pic_param.base.ReferenceFrames[i];