summaryrefslogtreecommitdiff
path: root/libavcodec/libvpxenc.c
diff options
context:
space:
mode:
authorJames Zern <jzern@google.com>2010-06-07 21:34:56 +0000
committerCarl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at>2010-06-07 21:34:56 +0000
commit082a0a33c45d9bc4f3a8d9b1365b5416485ed388 (patch)
treeb00a02ae836a561a74e845d5d9634631264baa2f /libavcodec/libvpxenc.c
parent525ac37fd285771b3a734367ef89e77f451b1a54 (diff)
Use new macro AV_BASE64_SIZE.
Patch by James Zern, jzern google com Originally committed as revision 23515 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/libvpxenc.c')
-rw-r--r--libavcodec/libvpxenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/libvpxenc.c b/libavcodec/libvpxenc.c
index fa393b8f42..e3fc333972 100644
--- a/libavcodec/libvpxenc.c
+++ b/libavcodec/libvpxenc.c
@@ -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) {