Commit 96938216 authored by Lukasz Marek's avatar Lukasz Marek

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

Signed-off-by: 's avatarLukasz Marek <lukasz.m.luki2@gmail.com>
parent 691f9be6
......@@ -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);
}
......
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