dvdspu: avoid null dereference

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6386>
This commit is contained in:
Mark Nauwelaerts 2024-03-16 19:32:19 +01:00 committed by GStreamer Marge Bot
parent 76d1bd05b2
commit 324563b158

View file

@ -625,6 +625,11 @@ parse_set_object_data (GstDVDSpu * dvdspu, guint8 type, guint8 * payload,
PGS_DUMP ("Object ID %d ver %u flags 0x%02x\n", obj_id, obj_ver, flags);
if (!obj) {
GST_ERROR ("unknown Object ID %d", obj_id);
return 0;
}
if (flags & PGS_OBJECT_UPDATE_FLAG_START_RLE) {
obj->rle_data_ver = obj_ver;