X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fdxa.c;h=3f62eac2527c330ff8aeea2c46760e021a4da886;hb=c769050f56a8322091775af1f672803d8a42c775;hp=f6edc03e1a6877087bd039666db8a645cac1fae9;hpb=e645d7a6d452df83cedcbb1d6708429ceea156da;p=ffmpeg diff --git a/libavcodec/dxa.c b/libavcodec/dxa.c index f6edc03e1a6..3f62eac2527 100644 --- a/libavcodec/dxa.c +++ b/libavcodec/dxa.c @@ -343,7 +343,6 @@ static av_cold int decode_init(AVCodecContext *avctx) c->dsize = avctx->width * avctx->height * 2; c->decomp_buf = av_malloc(c->dsize + DECOMP_BUF_PADDING); if (!c->decomp_buf) { - av_frame_free(&c->prev); av_log(avctx, AV_LOG_ERROR, "Can't allocate decompression buffer.\n"); return AVERROR(ENOMEM); } @@ -371,4 +370,5 @@ AVCodec ff_dxa_decoder = { .close = decode_end, .decode = decode_frame, .capabilities = AV_CODEC_CAP_DR1, + .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, };