forked from FFmpeg/FFmpeg
[PATCH] Fix crash when initializing multi-threaded decoding for corrupted file.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
This commit is contained in:
parent
3d1af11df4
commit
e524eadbf8
1 changed files with 2 additions and 1 deletions
|
@ -651,6 +651,7 @@ static void frame_thread_free(AVCodecContext *avctx, int thread_count)
|
|||
pthread_cond_signal(&p->input_cond);
|
||||
pthread_mutex_unlock(&p->mutex);
|
||||
|
||||
if (p->thread)
|
||||
pthread_join(p->thread, NULL);
|
||||
|
||||
if (codec->close)
|
||||
|
|
Loading…
Add table
Reference in a new issue