Commit 62533eab authored by Michael Niedermayer's avatar 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: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 80b1e1c0
...@@ -1069,7 +1069,7 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt, ...@@ -1069,7 +1069,7 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
+ avctx->width*avctx->height*35LL*4; + avctx->width*avctx->height*35LL*4;
if (f->version > 3) 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) if ((ret = ff_alloc_packet2(avctx, pkt, maxsize)) < 0)
return ret; return ret;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment