mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
libs: encoder: continue if roi meta is NULL
Coverity scan bug: If the function actually returns a null value, a null pointer dereference will occur. In gst_vaapi_encoder_ensure_param_roi_regions(): Return value of function which returns null is dereferenced without checking
This commit is contained in:
parent
9c1f3ad172
commit
2541a33d6c
1 changed files with 2 additions and 0 deletions
|
@ -329,6 +329,8 @@ gst_vaapi_encoder_ensure_param_roi_regions (GstVaapiEncoder * encoder,
|
|||
roi = (GstVideoRegionOfInterestMeta *)
|
||||
gst_buffer_iterate_meta_filtered (input, &state,
|
||||
GST_VIDEO_REGION_OF_INTEREST_META_API_TYPE);
|
||||
if (!roi)
|
||||
continue;
|
||||
|
||||
/* ignore roi if overflow */
|
||||
if ((roi->x > G_MAXINT16) || (roi->y > G_MAXINT16)
|
||||
|
|
Loading…
Reference in a new issue