[FFmpeg-cvslog] r23515 - trunk/libavcodec/libvpxenc.c

cehoyos subversion
Mon Jun 7 23:34:56 CEST 2010


Author: cehoyos
Date: Mon Jun  7 23:34:56 2010
New Revision: 23515

Log:
Use new macro AV_BASE64_SIZE.

Patch by James Zern, jzern google com

Modified:
   trunk/libavcodec/libvpxenc.c

Modified: trunk/libavcodec/libvpxenc.c
==============================================================================
--- trunk/libavcodec/libvpxenc.c	Mon Jun  7 13:43:12 2010	(r23514)
+++ trunk/libavcodec/libvpxenc.c	Mon Jun  7 23:34:56 2010	(r23515)
@@ -460,7 +460,7 @@ static int vp8_encode(AVCodecContext *av
     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) {



More information about the ffmpeg-cvslog mailing list