]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/smacker.c
lavc/utils: free private options on avcodec_open2 fail
[ffmpeg] / libavcodec / smacker.c
index 518bdad3ec1484d9802389c2322d873c26d5dc25..b5538c74948e960f217e5e03307bb4043eea360d 100644 (file)
@@ -589,6 +589,7 @@ static av_cold int decode_init(AVCodecContext *avctx)
     /* decode huffman trees from extradata */
     if(avctx->extradata_size < 16){
         av_log(avctx, AV_LOG_ERROR, "Extradata missing!\n");
+        decode_end(avctx);
         return AVERROR(EINVAL);
     }