From ab2cfc59a6756782e01fe96399e73a33d6d6cc52 Mon Sep 17 00:00:00 2001 From: Janne Grunau Date: Fri, 6 Jul 2007 15:24:08 +0000 Subject: free thread context patch by Janne Grunau: [janne-ffmpeg grunau be] Originally committed as revision 9508 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/utils.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libavcodec') diff --git a/libavcodec/utils.c b/libavcodec/utils.c index 33c2c36b83..4d6ed7777c 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -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); -- cgit v1.2.3