Skip to content
Snippets Groups Projects
Commit 0f9bedae authored by François Cartegnie's avatar François Cartegnie :fingers_crossed:
Browse files

packetizer: h264: fix leaks on Open failure

parent 18ae72bb
No related branches found
No related tags found
No related merge requests found
......@@ -264,12 +264,14 @@ static int Open( vlc_object_t *p_this )
if(!p_dec->fmt_out.p_extra)
{
msg_Err( p_dec, "Invalid AVC extradata");
Close( p_this );
return VLC_EGENERIC;
}
}
else
{
msg_Err( p_dec, "Invalid or missing AVC extradata");
Close( p_this );
return VLC_EGENERIC;
}
......@@ -299,6 +301,7 @@ static int Open( vlc_object_t *p_this )
{
msg_Err( p_dec, "Invalid or missing SPS %d or PPS %d in AVC extradata",
p_sys->b_sps, p_sys->b_pps );
Close( p_this );
return VLC_EGENERIC;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment