Skip to content
Snippets Groups Projects
Commit 331fae80 authored by Lukasz Marek's avatar Lukasz Marek
Browse files

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

parent 305b0309
No related branches found
No related tags found
No related merge requests found
...@@ -197,6 +197,8 @@ static av_cold int mss1_decode_init(AVCodecContext *avctx) ...@@ -197,6 +197,8 @@ static av_cold int mss1_decode_init(AVCodecContext *avctx)
return AVERROR(ENOMEM); return AVERROR(ENOMEM);
ret = ff_mss12_decode_init(&c->ctx, 0, &c->sc, NULL); 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; avctx->pix_fmt = AV_PIX_FMT_PAL8;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment