[vlc-commits] core/picture: add null check
Thomas Guillem
git at videolan.org
Thu Dec 29 09:37:11 CET 2016
vlc/vlc-2.2 | branch: master | Thomas Guillem <thomas at gllm.fr> | Thu Dec 29 09:29:57 2016 +0100| [358046310ca2d43364c4a4b4742c976d168ef5f4] | committer: Jean-Baptiste Kempf
core/picture: add null check
(cherry picked from commit 88a6650274e2a46f89427fffee5a91a1060d0d92)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=358046310ca2d43364c4a4b4742c976d168ef5f4
---
src/misc/picture.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/misc/picture.c b/src/misc/picture.c
index 59a3fa8..cfc1383 100644
--- a/src/misc/picture.c
+++ b/src/misc/picture.c
@@ -437,6 +437,8 @@ int picture_Export( vlc_object_t *p_obj,
}
image_handler_t *p_image = image_HandlerCreate( p_obj );
+ if( !p_image )
+ return VLC_ENOMEM;
block_t *p_block = image_Write( p_image, p_picture, &fmt_in, &fmt_out );
More information about the vlc-commits
mailing list