Revision 082a0a33 libavcodec/libvpxenc.c

View differences:

libavcodec/libvpxenc.c
460 460
    coded_size = queue_frames(avctx, buf, buf_size, avctx->coded_frame);
461 461

  
462 462
    if (!frame && avctx->flags & CODEC_FLAG_PASS1) {
463
        unsigned int b64_size = ((ctx->twopass_stats.sz + 2) / 3) * 4 + 1;
463
        unsigned int b64_size = AV_BASE64_SIZE(ctx->twopass_stats.sz);
464 464

  
465 465
        avctx->stats_out = av_malloc(b64_size);
466 466
        if (!avctx->stats_out) {

Also available in: Unified diff