Commit 331fae80 authored by Lukasz Marek's avatar Lukasz Marek

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

Signed-off-by: 's avatarLukasz Marek <lukasz.m.luki2@gmail.com>
parent 305b0309
......@@ -197,6 +197,8 @@ static av_cold int mss1_decode_init(AVCodecContext *avctx)
return AVERROR(ENOMEM);
ret = ff_mss12_decode_init(&c->ctx, 0, &c->sc, NULL);
if (ret < 0)
av_frame_free(&c->pic);
avctx->pix_fmt = AV_PIX_FMT_PAL8;
......
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