[vlc-devel] [PATCH] packetizer: avparser: fix memory leak
Zhao Zhili
quinkblack at foxmail.com
Mon Nov 26 07:52:23 CET 2018
Please review, thanks!
On 2018/11/22 上午10:13, Zhao Zhili wrote:
> ---
> 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 )
> {
More information about the vlc-devel
mailing list