lavc/smacker: fix mem leak in case of init failure

Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
pull/93/merge
Lukasz Marek 10 years ago
parent 691f9be622
commit 969382162f
  1. 1
      libavcodec/smacker.c

@ -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);
}

Loading…
Cancel
Save