diff options
author | Carl Eugen Hoyos <[email protected]> | 2011-07-01 02:38:28 +0200 |
---|---|---|
committer | Carl Eugen Hoyos <[email protected]> | 2011-07-06 10:09:23 +0200 |
commit | 3097309cba69a891c06aec3ccf4095a83eb38da2 (patch) | |
tree | 727fdbc55b9169ecb4f0589efef5215bc7ade5ee | |
parent | 3fedb3e65c6595c4fd78b03ed9b0d83cf257062c (diff) |
Fix possible double free when encoding using xvid.
(cherry picked from commit 315f0e3fd8dcbd1362276b7407dad2e97cccc4b7)
-rw-r--r-- | libavcodec/libxvidff.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/libxvidff.c b/libavcodec/libxvidff.c index 9b5c17c59d..effd2db158 100644 --- a/libavcodec/libxvidff.c +++ b/libavcodec/libxvidff.c @@ -528,6 +528,7 @@ static av_cold int xvid_encode_close(AVCodecContext *avctx) { if( x->twopassbuffer != NULL ) { av_free(x->twopassbuffer); av_free(x->old_twopassbuffer); + avctx->stats_out = NULL; } av_free(x->twopassfile); av_free(x->intra_matrix); |