mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 23:21:06 +01:00
lavc/mss1: fix mem leak in case of init failure
Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
This commit is contained in:
parent
305b03097d
commit
331fae80a1
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue