diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-11-27 06:17:03 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-11-27 06:17:03 +0100 |
commit | 47044625ba0829d10e48f8c205e2c976181de01a (patch) | |
tree | a372b680f0101bff275682ef1ee258cefc119e76 | |
parent | 2bb79b23fe106a45eab6ff80d7ef7519d542d1f7 (diff) | |
download | ffmpeg-streaming-47044625ba0829d10e48f8c205e2c976181de01a.zip ffmpeg-streaming-47044625ba0829d10e48f8c205e2c976181de01a.tar.gz |
pthread: check pthread_create() return value.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/pthread.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/pthread.c b/libavcodec/pthread.c index ad1fe12..e7542a6 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; |