summaryrefslogtreecommitdiff
path: root/libavcodec/rpzaenc.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2022-11-17 13:52:59 +0100
committerPaul B Mahol <onemda@gmail.com>2022-11-17 13:54:52 +0100
commite9a67ababacb0c66481a17f5648b3594789e8914 (patch)
tree30732d74faa6091c60684f85bf0131ffd2003604 /libavcodec/rpzaenc.c
parent4f6c06e8ffca86128319ad660e7f898481a1c474 (diff)
avcodec/rpzaenc: count in packet size also fixed header
Diffstat (limited to 'libavcodec/rpzaenc.c')
-rw-r--r--libavcodec/rpzaenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/rpzaenc.c b/libavcodec/rpzaenc.c
index 880f6f71dc..1ea579d2d3 100644
--- a/libavcodec/rpzaenc.c
+++ b/libavcodec/rpzaenc.c
@@ -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;