[vlc-commits] g711: fix leak
Rémi Denis-Courmont
git at videolan.org
Wed Apr 13 22:39:01 CEST 2016
vlc/vlc-2.2 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Apr 13 23:34:21 2016 +0300| [81fc141547d5e970827d73330ce55eb9f8807238] | committer: Rémi Denis-Courmont
g711: fix leak
Pointed-out-by: Hannes Domani <ssbssa at yahoo.de>
(cherry picked from commit aa1e892a600a25de31c3b5c633ea9606a06720ec)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=81fc141547d5e970827d73330ce55eb9f8807238
---
modules/codec/g711.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/modules/codec/g711.c b/modules/codec/g711.c
index 9092490..5d89471 100644
--- a/modules/codec/g711.c
+++ b/modules/codec/g711.c
@@ -266,9 +266,7 @@ static block_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
for( unsigned i = 0; i < samples; i++ )
*(dst++) = p_sys->table[*(src++)];
- p_block->p_buffer += samples;
- p_block->i_buffer -= samples;
-
+ block_Release( p_block );
return p_out;
}
More information about the vlc-commits
mailing list