aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-10-19 23:36:35 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-10-19 23:36:35 +0200
commit62533eab6fb1d11e47bf88e31c02de454311e8c2 (patch)
tree197d11911ffed7877e3ec9a59ad70e4419af2e7b /libavcodec
parent80b1e1c03d26ade05b0f53d0731aa7398d4ef6f9 (diff)
downloadffmpeg-62533eab6fb1d11e47bf88e31c02de454311e8c2.tar.gz
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@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/ffv1enc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/ffv1enc.c b/libavcodec/ffv1enc.c
index d3eb118ce3..59d2869dc1 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;