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

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to