---
libavcodec/framethread.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/libavcodec/framethread.c b/libavcodec/framethread.c
index cb48748..5cdae38 100644
--- a/libavcodec/framethread.c
+++ b/libavcodec/framethread.c
@@ -291,6 +291,8 @@ void ff_frame_thread_free(AVCodecContext *avctx) {
fctx = ((PerThreadContext*)avctx->thread_opaque)->parent;
codec = fctx->last_thread->context->codec;
+ park_frame_decode_threads(fctx, avctx->thread_count);
+
if (fctx->last_thread != &fctx->threads[0] && codec->update_context)
codec->update_context(fctx->threads[0].context, fctx->last_thread->context);
_______________________________________________
FFmpeg-soc mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-soc