Commit a3bbecd9 authored by Alex Converse's avatar Alex Converse Committed by Jean-Baptiste Kempf

avcodec: fix double free on failure to open audio

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 37e605d8
...@@ -261,7 +261,6 @@ int InitAudioDec( decoder_t *p_dec, AVCodecContext *p_context, ...@@ -261,7 +261,6 @@ int InitAudioDec( decoder_t *p_dec, AVCodecContext *p_context,
/* ***** Open the codec ***** */ /* ***** Open the codec ***** */
if( OpenAudioCodec( p_dec ) < 0 ) if( OpenAudioCodec( p_dec ) < 0 )
{ {
av_free( p_context->extradata );
free( p_sys ); free( p_sys );
return VLC_EGENERIC; return VLC_EGENERIC;
} }
......
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