[FFmpeg-devel] [PATCH] avcodec: add bink2 video decoder

Tomas Härdin tjoppen at acc.umu.se
Wed May 25 21:17:01 EEST 2022


tis 2022-05-24 klockan 15:36 +0200 skrev Paul B Mahol:
> 
> +    c->current_q = av_malloc_array((avctx->width + 31) / 32,
> sizeof(*c->current_q));
> +    if (!c->current_q)
> +        return AVERROR(ENOMEM);

You can exploit BINK_MAX_WIDTH and BINK_MAX_HEIGHT to make the size of
these arrays constant, thus simplifying the code.

/Tomas



More information about the ffmpeg-devel mailing list