summaryrefslogtreecommitdiff
path: root/libavcodec/pthread.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/pthread.c')
-rw-r--r--libavcodec/pthread.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/pthread.c b/libavcodec/pthread.c
index ad1fe122e1..e7542a66f4 100644
--- a/libavcodec/pthread.c
+++ b/libavcodec/pthread.c
@@ -766,6 +766,8 @@ static int frame_thread_init(AVCodecContext *avctx)
if (err) goto error;
p->thread_created= !pthread_create(&p->thread, NULL, frame_worker_thread, p);
+ if(!p->thread_created)
+ goto error;
}
return 0;