[FFmpeg-cvslog] avcodec/libvpxenc: Clear twopass_stats.sz on deallocation

Michael Niedermayer git at videolan.org
Mon Mar 9 21:44:10 CET 2015


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Mar  9 21:17:45 2015 +0100| [cf714205bdd069d9c6604d3cfc33102aaed3c4f8] | committer: Michael Niedermayer

avcodec/libvpxenc: Clear twopass_stats.sz on deallocation

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=cf714205bdd069d9c6604d3cfc33102aaed3c4f8
---

 libavcodec/libvpxenc.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/libvpxenc.c b/libavcodec/libvpxenc.c
index 3def947..7f7d4ae 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,



More information about the ffmpeg-cvslog mailing list