[vlc-commits] D3D11 surface: fix potential free of uninitialized variable
Jean-Baptiste Kempf
git at videolan.org
Fri Feb 9 21:13:56 CET 2018
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri Feb 9 21:10:37 2018 +0100| [0d59e75b5fe26401ed60009248026ab091aa5bad] | committer: Jean-Baptiste Kempf
D3D11 surface: fix potential free of uninitialized variable
Fixes CD: 7ab9410e-8e85-4c47-b014-27ff0056944a
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0d59e75b5fe26401ed60009248026ab091aa5bad
---
modules/hw/d3d11/d3d11_surface.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/modules/hw/d3d11/d3d11_surface.c b/modules/hw/d3d11/d3d11_surface.c
index d45117dd1a..f8d86d43c7 100644
--- a/modules/hw/d3d11/d3d11_surface.c
+++ b/modules/hw/d3d11/d3d11_surface.c
@@ -682,6 +682,7 @@ int D3D11OpenCPUConverter( vlc_object_t *obj )
ID3D11Texture2D *texture = NULL;
filter_t *p_cpu_filter = NULL;
video_format_t fmt_staging;
+ filter_sys_t *p_sys = NULL;
if ( p_filter->fmt_out.video.i_chroma != VLC_CODEC_D3D11_OPAQUE )
return VLC_EGENERIC;
@@ -763,7 +764,7 @@ int D3D11OpenCPUConverter( vlc_object_t *obj )
goto done;
}
- filter_sys_t *p_sys = calloc(1, sizeof(filter_sys_t));
+ p_sys = calloc(1, sizeof(filter_sys_t));
if (!p_sys) {
err = VLC_ENOMEM;
goto done;
More information about the vlc-commits
mailing list