free thread context

patch by Janne Grunau: [janne-ffmpeg grunau be]

Originally committed as revision 9508 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Janne Grunau 2007-07-06 15:24:08 +00:00 committed by Benoit Fouet
parent 5416616588
commit ab2cfc59a6
1 changed files with 2 additions and 0 deletions

View File

@ -991,6 +991,8 @@ int avcodec_close(AVCodecContext *avctx)
return -1;
}
if (ENABLE_THREADS && avctx->thread_opaque)
avcodec_thread_free(avctx);
if (avctx->codec->close)
avctx->codec->close(avctx);
avcodec_default_free_buffers(avctx);