Browse Source

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
tags/n0.8
James Zern Carl Eugen Hoyos 15 years ago
parent
commit
082a0a33c4
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/libvpxenc.c

+ 1
- 1
libavcodec/libvpxenc.c View File

@@ -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); coded_size = queue_frames(avctx, buf, buf_size, avctx->coded_frame);


if (!frame && avctx->flags & CODEC_FLAG_PASS1) { 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); avctx->stats_out = av_malloc(b64_size);
if (!avctx->stats_out) { if (!avctx->stats_out) {


Loading…
Cancel
Save