[FFmpeg-cvslog] r22691 - trunk/libavcodec/libxvidff.c
ramiro
subversion
Fri Mar 26 05:12:28 CET 2010
Author: ramiro
Date: Fri Mar 26 05:12:28 2010
New Revision: 22691
Log:
libxvid: Clear extradata pointer when freeing it.
Fixes crash when avcodec_close() tried freeing it again.
Fixes issue 1846.
Modified:
trunk/libavcodec/libxvidff.c
Modified: trunk/libavcodec/libxvidff.c
==============================================================================
--- trunk/libavcodec/libxvidff.c Fri Mar 26 04:31:56 2010 (r22690)
+++ trunk/libavcodec/libxvidff.c Fri Mar 26 05:12:28 2010 (r22691)
@@ -481,7 +481,7 @@ static av_cold int xvid_encode_close(AVC
xvid_encore(x->encoder_handle, XVID_ENC_DESTROY, NULL, NULL);
if( avctx->extradata != NULL )
- av_free(avctx->extradata);
+ av_freep(&avctx->extradata);
if( x->twopassbuffer != NULL ) {
av_free(x->twopassbuffer);
av_free(x->old_twopassbuffer);
More information about the ffmpeg-cvslog
mailing list