avcodec/rpzaenc: count in packet size also fixed header

This commit is contained in:
Paul B Mahol 2022-11-17 13:52:59 +01:00
parent 4f6c06e8ff
commit e9a67ababa
1 changed files with 1 additions and 1 deletions

View File

@ -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, 6LL * avctx->height * avctx->width);
int ret = ff_alloc_packet(avctx, pkt, 4LL + 6LL * avctx->height * avctx->width);
if (ret < 0)
return ret;