[vlc-commits] d3d9_filters: fix a potential crash (again)
Steve Lhomme
git at videolan.org
Wed Feb 7 23:45:51 CET 2018
vlc/vlc-3.0 | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Feb 7 16:01:03 2018 +0100| [8dd2e819ae262fbbfcc4e1bb970c85ea5b4d914a] | committer: Jean-Baptiste Kempf
d3d9_filters: fix a potential crash (again)
Fixes #19612
(cherry picked from commit 02daf5d3a5e8816534aa71d66b93f4aa1e05b3f4)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=8dd2e819ae262fbbfcc4e1bb970c85ea5b4d914a
---
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 0dc1488a3d..8d1f7be7ca 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