aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-03-09 21:17:45 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-03-09 21:18:43 +0100
commitcf714205bdd069d9c6604d3cfc33102aaed3c4f8 (patch)
tree4457fe0e9fc278abda4bc7e0ad18e0f2ec461b38
parenta11440c1857babc2c1184b83c19b9e66c9a6fe95 (diff)
downloadffmpeg-cf714205bdd069d9c6604d3cfc33102aaed3c4f8.tar.gz
avcodec/libvpxenc: Clear twopass_stats.sz on deallocation
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/libvpxenc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/libvpxenc.c b/libavcodec/libvpxenc.c
index 3def947f05..7f7d4aedaf 100644
--- a/libavcodec/libvpxenc.c
+++ b/libavcodec/libvpxenc.c
@@ -390,6 +390,7 @@ static av_cold int vpx_init(AVCodecContext *avctx,
av_log(avctx, AV_LOG_ERROR,
"Stat buffer alloc (%"SIZE_SPECIFIER" bytes) failed\n",
ctx->twopass_stats.sz);
+ ctx->twopass_stats.sz = 0;
return ret;
}
decode_size = av_base64_decode(ctx->twopass_stats.buf, avctx->stats_in,