[FFmpeg-cvslog] r23101 - trunk/libavcodec/utils.c
reimar
subversion
Wed May 12 19:05:56 CEST 2010
Author: reimar
Date: Wed May 12 19:05:56 2010
New Revision: 23101
Log:
Set coded_frame to NULL when closing a codec, since it might
be invalid after the codec is "gone".
Modified:
trunk/libavcodec/utils.c
Modified: trunk/libavcodec/utils.c
==============================================================================
--- trunk/libavcodec/utils.c Wed May 12 03:47:14 2010 (r23100)
+++ trunk/libavcodec/utils.c Wed May 12 19:05:56 2010 (r23101)
@@ -709,6 +709,7 @@ av_cold int avcodec_close(AVCodecContext
if (avctx->codec && avctx->codec->close)
avctx->codec->close(avctx);
avcodec_default_free_buffers(avctx);
+ avctx->coded_frame = NULL;
av_freep(&avctx->priv_data);
if(avctx->codec && avctx->codec->encode)
av_freep(&avctx->extradata);
More information about the ffmpeg-cvslog
mailing list