[vlc-devel] [PATCH] Avoid NULL dereference within assert
chishtiawais511 at gmail.com
chishtiawais511 at gmail.com
Mon Mar 18 20:07:25 CET 2019
From: Awais Chishti <chishtiawais511 at gmail.com>
---
modules/hw/vaapi/filters.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/modules/hw/vaapi/filters.c b/modules/hw/vaapi/filters.c
index 97f025f3f2..7d1066ef9c 100644
--- a/modules/hw/vaapi/filters.c
+++ b/modules/hw/vaapi/filters.c
@@ -75,6 +75,7 @@ vlc_vaapi_FilterHoldInstance(filter_t *filter, VADisplay *dpy)
holder.owner = filter;
holder.dec_device = dec_device = pic->p_sys ?
vlc_vaapi_PicSysHoldInstance(pic->p_sys, dpy) : NULL;
+ assert(holder.dec_device);
assert(holder.dec_device->type == VLC_DECODER_DEVICE_VAAPI);
}
vlc_mutex_unlock(&holder.lock);
--
2.21.0
More information about the vlc-devel
mailing list