vlc | branch: master | Alex Converse <[email protected]> | Sat Feb  7 
12:30:32 2015 -0800| [a3bbecd9fd9406d08b6b0dcf5c06bff123b58853] | committer: 
Jean-Baptiste Kempf

avcodec: fix double free on failure to open audio

Signed-off-by: Jean-Baptiste Kempf <[email protected]>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a3bbecd9fd9406d08b6b0dcf5c06bff123b58853
---

 modules/codec/avcodec/audio.c |    1 -
 1 file changed, 1 deletion(-)

diff --git a/modules/codec/avcodec/audio.c b/modules/codec/avcodec/audio.c
index a37f1cf..514f76d 100644
--- a/modules/codec/avcodec/audio.c
+++ b/modules/codec/avcodec/audio.c
@@ -261,7 +261,6 @@ int InitAudioDec( decoder_t *p_dec, AVCodecContext 
*p_context,
     /* ***** Open the codec ***** */
     if( OpenAudioCodec( p_dec ) < 0 )
     {
-        av_free( p_context->extradata );
         free( p_sys );
         return VLC_EGENERIC;
     }

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to