[vlc-commits] [Git][videolan/vlc][master] packetizer: avparser: fix leak on flush
Jean-Baptiste Kempf (@jbk)
gitlab at videolan.org
Wed May 1 12:45:53 UTC 2024
Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC
Commits:
0e39c49c by François Cartegnie at 2024-05-01T12:23:44+00:00
packetizer: avparser: fix leak on flush
- - - - -
1 changed file:
- modules/packetizer/avparser.c
Changes:
=====================================
modules/packetizer/avparser.c
=====================================
@@ -66,6 +66,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/0e39c49c95a97113006864d388b4cf9021c13ce2
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/0e39c49c95a97113006864d388b4cf9021c13ce2
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list