diff options
Diffstat (limited to 'libavcodec/dxa.c')
-rw-r--r-- | libavcodec/dxa.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/dxa.c b/libavcodec/dxa.c index 2704852768..1d96f10ef4 100644 --- a/libavcodec/dxa.c +++ b/libavcodec/dxa.c @@ -321,12 +321,12 @@ static av_cold int decode_init(AVCodecContext *avctx) { DxaDecContext * const c = avctx->priv_data; - avctx->pix_fmt = AV_PIX_FMT_PAL8; - c->prev = av_frame_alloc(); if (!c->prev) return AVERROR(ENOMEM); + avctx->pix_fmt = AV_PIX_FMT_PAL8; + c->dsize = avctx->width * avctx->height * 2; c->decomp_buf = av_malloc(c->dsize); if (!c->decomp_buf) { |