diff options
author | Janne Grunau <janne-ffmpeg@jannau.net> | 2007-07-06 15:24:08 +0000 |
---|---|---|
committer | Benoit Fouet <benoit.fouet@free.fr> | 2007-07-06 15:24:08 +0000 |
commit | ab2cfc59a6756782e01fe96399e73a33d6d6cc52 (patch) | |
tree | 235ca9527befbcbaec93097687163dfc209dea64 | |
parent | 5416616588e521311c863a89b69392ba9856b45e (diff) | |
download | ffmpeg-ab2cfc59a6756782e01fe96399e73a33d6d6cc52.tar.gz |
free thread context
patch by Janne Grunau: [janne-ffmpeg grunau be]
Originally committed as revision 9508 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/utils.c | 2 |
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); |