mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-12-02 16:27:25 +00:00
avcodec/libvpxenc: Clear twopass_stats.sz on deallocation
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
a11440c185
commit
cf714205bd
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user