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