diff options
author | Anton Khirnov <anton@khirnov.net> | 2013-10-27 13:00:37 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2013-11-04 08:51:26 +0100 |
commit | 38ecc3702dabbea09230f6d6333f59e74f5d1c12 (patch) | |
tree | f579350e0fc85ce1cb42646b2f13a5ed9a6895af /libavcodec/utils.c | |
parent | daa7a1d4431b6acf1f93c4a98b3de123abf4ca18 (diff) | |
download | ffmpeg-38ecc3702dabbea09230f6d6333f59e74f5d1c12.tar.gz |
pthread: store thread contexts in AVCodecInternal instead of AVCodecContext
It's a private field, it should not be visible to callers.
Deprecate AVCodecContext.thread_opaque
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r-- | libavcodec/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c index 262f081d18..7b5c796b2a 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -1567,7 +1567,7 @@ av_cold int avcodec_close(AVCodecContext *avctx) if (avcodec_is_open(avctx)) { FramePool *pool = avctx->internal->pool; int i; - if (HAVE_THREADS && avctx->thread_opaque) + if (HAVE_THREADS && avctx->internal->thread_ctx) ff_thread_free(avctx); if (avctx->codec && avctx->codec->close) avctx->codec->close(avctx); |