[vlc-commits] demux: h26X: fix memleak on es_Add error
Francois Cartegnie
git at videolan.org
Sun Nov 13 19:22:58 CET 2016
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Sun Nov 13 19:21:32 2016 +0100| [e1a253f46fafd7164527af63025083404b6d998b] | committer: Francois Cartegnie
demux: h26X: fix memleak on es_Add error
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e1a253f46fafd7164527af63025083404b6d998b
---
modules/demux/mpeg/h26x.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/modules/demux/mpeg/h26x.c b/modules/demux/mpeg/h26x.c
index 69e7627..002650c 100644
--- a/modules/demux/mpeg/h26x.c
+++ b/modules/demux/mpeg/h26x.c
@@ -429,7 +429,10 @@ static int Demux( demux_t *p_demux)
p_sys->p_packetizer->fmt_out.b_packetized = true;
p_sys->p_es = es_out_Add( p_demux->out, &p_sys->p_packetizer->fmt_out );
if( !p_sys->p_es )
+ {
+ block_ChainRelease( p_block_out );
return VLC_DEMUXER_EOF;
+ }
}
/* h264 packetizer does merge multiple NAL into AU, but slice flag persists */
More information about the vlc-commits
mailing list