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:
parent
feadcd1bdc
commit
7b6883898f
@ -633,7 +633,7 @@ static void frame_thread_free(AVCodecContext *avctx, int 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);
|
||||
|
||||
fctx->die = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user