mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 23:21:06 +01:00
avcodec/rpzaenc: fix assertions with very small width/height
This commit is contained in:
parent
0231df505d
commit
6022e0b04f
1 changed files with 1 additions and 1 deletions
|
|
@ -802,7 +802,7 @@ static int rpza_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
|
|||
{
|
||||
RpzaContext *s = avctx->priv_data;
|
||||
uint8_t *buf;
|
||||
int ret = ff_alloc_packet(avctx, pkt, 4LL + 6LL * avctx->height * avctx->width);
|
||||
int ret = ff_alloc_packet(avctx, pkt, 4LL + 6LL * FFMAX(avctx->height, 4) * FFMAX(avctx->width, 4));
|
||||
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue