提交 e524eadb 编写于 作者: C Cheng Sun 提交者: Ronald S. Bultje

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

Signed-off-by: NRonald S. Bultje <rsbultje@gmail.com>
上级 3d1af11d
......@@ -651,7 +651,8 @@ static void frame_thread_free(AVCodecContext *avctx, int thread_count)
pthread_cond_signal(&p->input_cond);
pthread_mutex_unlock(&p->mutex);
pthread_join(p->thread, NULL);
if (p->thread)
pthread_join(p->thread, NULL);
if (codec->close)
codec->close(p->avctx);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册