Commit e1a253f4 authored by François Cartegnie's avatar François Cartegnie 🤞

demux: h26X: fix memleak on es_Add error

parent 225c7acc
......@@ -429,7 +429,10 @@ static int Demux( demux_t *p_demux)
p_sys->p_packetizer->fmt_out.b_packetized = true;
p_sys->p_es = es_out_Add( p_demux->out, &p_sys->p_packetizer->fmt_out );
if( !p_sys->p_es )
{
block_ChainRelease( p_block_out );
return VLC_DEMUXER_EOF;
}
}
/* h264 packetizer does merge multiple NAL into AU, but slice flag persists */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment