Commit f8fa5d73 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

avcodec: free extradata after closing the context

parent 10b5fe82
......@@ -342,9 +342,6 @@ static void CloseDecoder( vlc_object_t *p_this )
break;
}
av_free( p_sys->p_context->extradata );
p_sys->p_context->extradata = NULL;
if( !p_sys->b_delayed_open )
{
vlc_avcodec_lock();
......@@ -353,6 +350,7 @@ static void CloseDecoder( vlc_object_t *p_this )
msg_Dbg( p_dec, "ffmpeg codec (%s) stopped", p_sys->p_codec->name );
}
av_freep( &p_sys->p_context->extradata );
avcodec_free_context( &p_sys->p_context );
free( p_sys );
}
......
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