[vlc-devel] commit: Solved potential crash in invmem codec (Hugo Beauzee-Luyssen )
git version control
git at videolan.org
Mon Sep 14 19:36:18 CEST 2009
vlc | branch: master | Hugo Beauzee-Luyssen <beauze.h at gmail.com> | Mon Sep 14 19:27:55 2009 +0200| [df36b003c8242b41d6deae4aa1dc08c4a02410d4] | committer: Rémi Denis-Courmont
Solved potential crash in invmem codec
Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=df36b003c8242b41d6deae4aa1dc08c4a02410d4
---
modules/codec/invmem.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/modules/codec/invmem.c b/modules/codec/invmem.c
index 85c3723..7b6d97f 100644
--- a/modules/codec/invmem.c
+++ b/modules/codec/invmem.c
@@ -191,6 +191,7 @@ static picture_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
if( p_sys->p_pic != NULL )
picture_Release( p_sys->p_pic );
p_sys->p_pic = decoder_NewPicture( p_dec );
+ if ( !p_sys->p_pic ) return NULL;
p_sys->p_pic->b_force = true;
p_sys->p_pic->p->i_pitch = p_dec->p_sys->i_pitch;
p_sys->p_pic->date = p_block->i_pts > 0 ? p_block->i_pts : p_block->i_dts;
More information about the vlc-devel
mailing list