ffmpeg | branch: master | Paul B Mahol <[email protected]> | Thu Nov 17 13:52:59 
2022 +0100| [e9a67ababacb0c66481a17f5648b3594789e8914] | committer: Paul B Mahol

avcodec/rpzaenc: count in packet size also fixed header

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e9a67ababacb0c66481a17f5648b3594789e8914
---

 libavcodec/rpzaenc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;

_______________________________________________
ffmpeg-cvslog mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to