diff options
author | Nicolas George <nicolas.george@normalesup.org> | 2011-09-28 17:16:11 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-09-28 18:13:52 +0200 |
commit | 769298a6869c3b16557280a63f6502409d1b5e49 (patch) | |
tree | 269882dcfdb53ebdf02113c4979e2e56b5d21ea2 /libavcodec/libvpxenc.c | |
parent | 198ed6474d603f930430067b8b56955d443e821c (diff) | |
download | ffmpeg-769298a6869c3b16557280a63f6502409d1b5e49.tar.gz |
libvpxenc: Replace av_realloc by av_realloc_f when relevant.
Signed-off-by: Nicolas George <nicolas.george@normalesup.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/libvpxenc.c')
-rw-r--r-- | libavcodec/libvpxenc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/libvpxenc.c b/libavcodec/libvpxenc.c index 01749a29ba..6e3a5fca1b 100644 --- a/libavcodec/libvpxenc.c +++ b/libavcodec/libvpxenc.c @@ -507,8 +507,8 @@ static int queue_frames(AVCodecContext *avctx, uint8_t *buf, int buf_size, break; case VPX_CODEC_STATS_PKT: { struct vpx_fixed_buf *stats = &ctx->twopass_stats; - stats->buf = av_realloc(stats->buf, - stats->sz + pkt->data.twopass_stats.sz); + stats->buf = av_realloc_f(stats->buf, 1, + stats->sz + pkt->data.twopass_stats.sz); if (!stats->buf) { av_log(avctx, AV_LOG_ERROR, "Stat buffer realloc failed\n"); return AVERROR(ENOMEM); |