[FFmpeg-cvslog] ffv1enc: use 64bit in maxsize calculation

Michael Niedermayer git at videolan.org
Sun Oct 20 00:15:42 CEST 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Oct 19 23:36:35 2013 +0200| [62533eab6fb1d11e47bf88e31c02de454311e8c2] | committer: Michael Niedermayer

ffv1enc: use 64bit in maxsize calculation

This isnt needed but it cant hurt, its also more consistent with
how its calculated a few lines before.

See: CID1108593
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

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

diff --git a/libavcodec/ffv1enc.c b/libavcodec/ffv1enc.c
index d3eb118..59d2869 100644
--- a/libavcodec/ffv1enc.c
+++ b/libavcodec/ffv1enc.c
@@ -1069,7 +1069,7 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
                       + avctx->width*avctx->height*35LL*4;
 
     if (f->version > 3)
-        maxsize = FF_MIN_BUFFER_SIZE + avctx->width*avctx->height*3*4;
+        maxsize = FF_MIN_BUFFER_SIZE + avctx->width*avctx->height*3LL*4;
 
     if ((ret = ff_alloc_packet2(avctx, pkt, maxsize)) < 0)
         return ret;



More information about the ffmpeg-cvslog mailing list