[vlc-devel] [PATCH] packetizer: avparser: fix memory leak

Zhao Zhili quinkblack at foxmail.com
Thu Nov 22 03:13:47 CET 2018


---
 modules/packetizer/avparser.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/packetizer/avparser.c b/modules/packetizer/avparser.c
index 1f911bb..a409e58 100644
--- a/modules/packetizer/avparser.c
+++ b/modules/packetizer/avparser.c
@@ -67,6 +67,7 @@ static void FlushPacketizer( decoder_t *p_dec )
 {
     avparser_ClosePacketizer( VLC_OBJECT( p_dec ) );
     p_dec->p_sys = NULL;
+    es_format_Clean( &p_dec->fmt_out );
     int res = avparser_OpenPacketizer( VLC_OBJECT( p_dec ) );
     if ( res != VLC_SUCCESS )
     {
-- 
2.9.5





More information about the vlc-devel mailing list