[FFmpeg-cvslog] Fix possible double free when encoding using xvid.
Carl Eugen Hoyos
git at videolan.org
Thu Nov 3 03:57:35 CET 2011
ffmpeg | branch: release/0.5 | Carl Eugen Hoyos <cehoyos at ag.or.at> | Fri Jul 1 02:38:28 2011 +0200| [46f9a6203aa37b0f04a63379cb04304c596dc779] | committer: Michael Niedermayer
Fix possible double free when encoding using xvid.
(cherry picked from commit 315f0e3fd8dcbd1362276b7407dad2e97cccc4b7)
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=46f9a6203aa37b0f04a63379cb04304c596dc779
---
libavcodec/libxvidff.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/libavcodec/libxvidff.c b/libavcodec/libxvidff.c
index bdf70a0..0bbb712 100644
--- a/libavcodec/libxvidff.c
+++ b/libavcodec/libxvidff.c
@@ -485,6 +485,7 @@ av_cold int ff_xvid_encode_close(AVCodecContext *avctx) {
if( x->twopassbuffer != NULL ) {
av_free(x->twopassbuffer);
av_free(x->old_twopassbuffer);
+ avctx->stats_out = NULL;
}
if( x->twopassfile != NULL )
av_free(x->twopassfile);
More information about the ffmpeg-cvslog
mailing list