summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorJanne Grunau <janne-ffmpeg@jannau.net>2007-07-06 15:24:08 +0000
committerBenoit Fouet <benoit.fouet@free.fr>2007-07-06 15:24:08 +0000
commitab2cfc59a6756782e01fe96399e73a33d6d6cc52 (patch)
tree235ca9527befbcbaec93097687163dfc209dea64 /libavcodec
parent5416616588e521311c863a89b69392ba9856b45e (diff)
free thread context
patch by Janne Grunau: [janne-ffmpeg grunau be] Originally committed as revision 9508 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/utils.c2
1 files changed, 2 insertions, 0 deletions
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);