git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
525ac37
)
Use new macro AV_BASE64_SIZE.
author
James Zern
<jzern@google.com>
Mon, 7 Jun 2010 21:34:56 +0000
(21:34 +0000)
committer
Carl Eugen Hoyos
<cehoyos@rainbow.studorg.tuwien.ac.at>
Mon, 7 Jun 2010 21:34:56 +0000
(21:34 +0000)
Patch by James Zern, jzern google com
Originally committed as revision 23515 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/libvpxenc.c
patch
|
blob
|
history
diff --git
a/libavcodec/libvpxenc.c
b/libavcodec/libvpxenc.c
index
fa393b8
..
e3fc333
100644
(file)
--- 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) {