Commit cf714205 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/libvpxenc: Clear twopass_stats.sz on deallocation

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent a11440c1
...@@ -390,6 +390,7 @@ static av_cold int vpx_init(AVCodecContext *avctx, ...@@ -390,6 +390,7 @@ static av_cold int vpx_init(AVCodecContext *avctx,
av_log(avctx, AV_LOG_ERROR, av_log(avctx, AV_LOG_ERROR,
"Stat buffer alloc (%"SIZE_SPECIFIER" bytes) failed\n", "Stat buffer alloc (%"SIZE_SPECIFIER" bytes) failed\n",
ctx->twopass_stats.sz); ctx->twopass_stats.sz);
ctx->twopass_stats.sz = 0;
return ret; return ret;
} }
decode_size = av_base64_decode(ctx->twopass_stats.buf, avctx->stats_in, decode_size = av_base64_decode(ctx->twopass_stats.buf, avctx->stats_in,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment