summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2022-12-01 00:39:05 +0100
committerPaul B Mahol <onemda@gmail.com>2022-12-01 00:46:19 +0100
commitf52963b48e14e4c1e1762a71b9f0bf257d5e78d1 (patch)
treedf92cbc22b639394ecf8e08d91c9fdbdb0a2aa57
parent6a7c70fd8b6a5b26801ec4a3dc26c015786824d7 (diff)
avcodec/cfhdenc: readjust packet allocation
-rw-r--r--libavcodec/cfhdenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/cfhdenc.c b/libavcodec/cfhdenc.c
index 0fca46ef3a..29e6aa1280 100644
--- a/libavcodec/cfhdenc.c
+++ b/libavcodec/cfhdenc.c
@@ -548,7 +548,7 @@ static int cfhd_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
width, height * 2);
}
- ret = ff_alloc_packet(avctx, pkt, 64LL + s->planes * (2LL * avctx->width * avctx->height + 1000LL));
+ ret = ff_alloc_packet(avctx, pkt, 256LL + s->planes * (2LL * avctx->width * (avctx->height + 15) + 2048LL));
if (ret < 0)
return ret;