1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

pthread: prevent updating AVCodecContext from itself in frame_thread_free

Signed-off-by: Janne Grunau <janne-libav@jannau.net>
This commit is contained in:
Ronald S. Bultje 2011-10-14 23:47:45 +02:00 committed by Janne Grunau
parent feadcd1bdc
commit 7b6883898f

View File

@ -633,7 +633,7 @@ static void frame_thread_free(AVCodecContext *avctx, int thread_count)
park_frame_worker_threads(fctx, thread_count); park_frame_worker_threads(fctx, thread_count);
if (fctx->prev_thread) if (fctx->prev_thread && fctx->prev_thread != fctx->threads)
update_context_from_thread(fctx->threads->avctx, fctx->prev_thread->avctx, 0); update_context_from_thread(fctx->threads->avctx, fctx->prev_thread->avctx, 0);
fctx->die = 1; fctx->die = 1;