Commit c5179212 authored by cehoyos's avatar cehoyos

Use new macro AV_BASE64_SIZE.

Patch by James Zern, jzern google com 


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@23515 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent e98e85c1
......@@ -460,7 +460,7 @@ static int vp8_encode(AVCodecContext *avctx, uint8_t *buf, int buf_size,
coded_size = queue_frames(avctx, buf, buf_size, avctx->coded_frame);
if (!frame && avctx->flags & CODEC_FLAG_PASS1) {
unsigned int b64_size = ((ctx->twopass_stats.sz + 2) / 3) * 4 + 1;
unsigned int b64_size = AV_BASE64_SIZE(ctx->twopass_stats.sz);
avctx->stats_out = av_malloc(b64_size);
if (!avctx->stats_out) {
......
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