[vlc-commits] [Git][videolan/vlc][3.0.x] packetizer: avparser: fix leak on flush
Felix Paul Kühne (@fkuehne)
gitlab at videolan.org
Thu Mar 26 17:28:28 UTC 2026
Felix Paul Kühne pushed to branch 3.0.x at VideoLAN / VLC
Commits:
5abba732 by François Cartegnie at 2026-03-26T16:09:10+01:00
packetizer: avparser: fix leak on flush
(adapted from commit 0e39c49c95a97113006864d388b4cf9021c13ce2)
- - - - -
1 changed file:
- modules/packetizer/avparser.c
Changes:
=====================================
modules/packetizer/avparser.c
=====================================
@@ -67,6 +67,8 @@ 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 );
+ es_format_Init( &p_dec->fmt_out, p_dec->fmt_in.i_cat, 0 );
int res = avparser_OpenPacketizer( VLC_OBJECT( p_dec ) );
if ( res != VLC_SUCCESS )
{
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/5abba732566ea93dd50a54227ff97c70683592be
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/5abba732566ea93dd50a54227ff97c70683592be
You're receiving this email because of your account on code.videolan.org.
More information about the vlc-commits
mailing list