aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/pthread.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-04-23 10:12:48 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-04-23 10:12:58 +0200
commit7c49c8b0ac30ef90964dbd0b2a8acd8f2d40f4a3 (patch)
tree6c0034461be8f9654f344c4f3bb63c38212bde81 /libavcodec/pthread.c
parenta9a537b154aaa48bc8154b2c4472f01eb9750784 (diff)
parent94660c35249e11c53b9a9f0c2f85c4335b21eda7 (diff)
downloadffmpeg-7c49c8b0ac30ef90964dbd0b2a8acd8f2d40f4a3.tar.gz
Merge commit '94660c35249e11c53b9a9f0c2f85c4335b21eda7'
* commit '94660c35249e11c53b9a9f0c2f85c4335b21eda7': threads: always call thread_finish_setup for intra codecs Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/pthread.c')
-rw-r--r--libavcodec/pthread.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/pthread.c b/libavcodec/pthread.c
index 7e33ba5d19..1e33fbcd18 100644
--- a/libavcodec/pthread.c
+++ b/libavcodec/pthread.c
@@ -1025,9 +1025,9 @@ static int thread_get_buffer_internal(AVCodecContext *avctx, ThreadFrame *f, int
pthread_mutex_unlock(&p->progress_mutex);
- if (!avctx->codec->update_thread_context)
- ff_thread_finish_setup(avctx);
}
+ if (!avctx->thread_safe_callbacks && !avctx->codec->update_thread_context)
+ ff_thread_finish_setup(avctx);
if (err)
av_buffer_unref(&f->progress);