[FFmpeg-cvslog] avcodec/cfhdenc: readjust packet allocation
Paul B Mahol
git at videolan.org
Thu Dec 1 01:42:14 EET 2022
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Thu Dec 1 00:39:05 2022 +0100| [f52963b48e14e4c1e1762a71b9f0bf257d5e78d1] | committer: Paul B Mahol
avcodec/cfhdenc: readjust packet allocation
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f52963b48e14e4c1e1762a71b9f0bf257d5e78d1
---
libavcodec/cfhdenc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
More information about the ffmpeg-cvslog
mailing list