Browse Source

codec: theora: fix leak on xiph_AppendHeaders error

pull/191/head
Tristan Matthews 9 months ago
parent
commit
e18f719aca
  1. 1
      modules/codec/theora.c

1
modules/codec/theora.c

@ -787,6 +787,7 @@ static int OpenEncoder( vlc_object_t *p_this )
if( xiph_AppendHeaders( &p_enc->fmt_out.i_extra, &p_enc->fmt_out.p_extra,
header.bytes, header.packet ) )
{
free(p_enc->fmt_out.p_extra);
p_enc->fmt_out.i_extra = 0;
p_enc->fmt_out.p_extra = NULL;
}

Loading…
Cancel
Save