Commit e524eadb authored by Cheng Sun's avatar Cheng Sun Committed by Ronald S. Bultje

[PATCH] Fix crash when initializing multi-threaded decoding for corrupted file.

Signed-off-by: 's avatarRonald S. Bultje <rsbultje@gmail.com>
parent 3d1af11d
...@@ -651,6 +651,7 @@ static void frame_thread_free(AVCodecContext *avctx, int thread_count) ...@@ -651,6 +651,7 @@ static void frame_thread_free(AVCodecContext *avctx, int thread_count)
pthread_cond_signal(&p->input_cond); pthread_cond_signal(&p->input_cond);
pthread_mutex_unlock(&p->mutex); pthread_mutex_unlock(&p->mutex);
if (p->thread)
pthread_join(p->thread, NULL); pthread_join(p->thread, NULL);
if (codec->close) if (codec->close)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment