mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 00:36:51 +00:00
dvdspu: avoid null dereference
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6386>
This commit is contained in:
parent
76d1bd05b2
commit
324563b158
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue