Browse Source

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

Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
tags/n2.5
Lukasz Marek 11 years ago
parent
commit
969382162f
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavcodec/smacker.c

+ 1
- 0
libavcodec/smacker.c View 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);
}



Loading…
Cancel
Save