[vlc-commits] packetizer: hevc: fix leak
Francois Cartegnie
git at videolan.org
Sat Dec 12 23:20:16 CET 2015
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Sat Dec 12 17:54:18 2015 +0100| [3629fd9e0fed7375be7a932656ed21e6afea4481] | committer: Francois Cartegnie
packetizer: hevc: fix leak
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3629fd9e0fed7375be7a932656ed21e6afea4481
---
modules/packetizer/hevc.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/modules/packetizer/hevc.c b/modules/packetizer/hevc.c
index 7295a2a..a758473 100644
--- a/modules/packetizer/hevc.c
+++ b/modules/packetizer/hevc.c
@@ -201,6 +201,8 @@ static block_t *ParseNALBlock(decoder_t *p_dec, bool *pb_ts_used, block_t *p_fra
if(p_frag->p_buffer[4] & 0x80)
{
msg_Warn(p_dec,"Forbidden zero bit not null, corrupted NAL");
+ block_ChainRelease(p_sys->p_frame);
+ block_Release(p_frag);
p_sys->p_frame = NULL;
p_sys->b_vcl = false;
return NULL;
More information about the vlc-commits
mailing list