[vlc-commits] d3d9_filters: fix a potential crash (again)

Steve Lhomme git at videolan.org
Wed Feb 7 16:02:17 CET 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Feb  7 16:01:03 2018 +0100| [02daf5d3a5e8816534aa71d66b93f4aa1e05b3f4] | committer: Steve Lhomme

d3d9_filters: fix a potential crash (again)

Fixes #19612

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=02daf5d3a5e8816534aa71d66b93f4aa1e05b3f4
---

 modules/hw/d3d9/d3d9_filters.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/hw/d3d9/d3d9_filters.c b/modules/hw/d3d9/d3d9_filters.c
index 7f565c2de4..72357c649c 100644
--- a/modules/hw/d3d9/d3d9_filters.c
+++ b/modules/hw/d3d9/d3d9_filters.c
@@ -107,7 +107,7 @@ static picture_t *Filter(filter_t *p_filter, picture_t *p_pic)
     picture_sys_t *p_src_sys = ActivePictureSys(p_pic);
 
     picture_t *p_outpic = filter_NewPicture( p_filter );
-    if( !p_outpic || !p_outpic->p_sys->surface )
+    if( !p_outpic || !p_outpic->p_sys || !p_outpic->p_sys->surface )
         goto failed;
 
     picture_CopyProperties( p_outpic, p_pic );



More information about the vlc-commits mailing list