[SCM] libav/experimental: mlp_parser: Fix memleak. ff_combine_frame() is called, which allocates ParseContext->buffer if needed, so ff_parse_close() must be called to free it. Patch by jai.

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 17:01:19 UTC 2013


The following commit has been merged in the experimental branch:
commit 8790961d7eda786f624317312c6ecc51945865e3
Author: Jai Menon <realityman at gmx.net>
Date:   Tue Feb 23 16:54:05 2010 +0000

    mlp_parser: Fix memleak.
    ff_combine_frame() is called, which allocates ParseContext->buffer if needed,
    so ff_parse_close() must be called to free it.
    Patch by jai.
    
    Originally committed as revision 22005 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavcodec/mlp_parser.c b/libavcodec/mlp_parser.c
index 65f5dc5..716e9e9 100644
--- a/libavcodec/mlp_parser.c
+++ b/libavcodec/mlp_parser.c
@@ -293,5 +293,5 @@ AVCodecParser mlp_parser = {
     sizeof(MLPParseContext),
     mlp_init,
     mlp_parse,
-    NULL,
+    ff_parse_close,
 };

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list