summaryrefslogtreecommitdiffstats
path: root/compat
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-06-02 15:16:45 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-06-02 15:16:45 +0200
commitea9daefe9329519f6dd810cb3b56288b1c71747c (patch)
treeab87b8687559bada007049ff674b9df2db575b95 /compat
parentcea3c9b281246f5ff5d27b1a02e3434b3ee178a6 (diff)
downloadffmpeg-streaming-ea9daefe9329519f6dd810cb3b56288b1c71747c.zip
ffmpeg-streaming-ea9daefe9329519f6dd810cb3b56288b1c71747c.tar.gz
compat/os2threads: Check av_malloc() return code
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'compat')
-rw-r--r--compat/os2threads.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/compat/os2threads.h b/compat/os2threads.h
index 441ac43..5b6ca55 100644
--- a/compat/os2threads.h
+++ b/compat/os2threads.h
@@ -66,6 +66,8 @@ static av_always_inline int pthread_create(pthread_t *thread, const pthread_attr
struct thread_arg *thread_arg;
thread_arg = av_mallocz(sizeof(struct thread_arg));
+ if (!thread_arg)
+ return ENOMEM;
thread_arg->start_routine = start_routine;
thread_arg->arg = arg;
OpenPOWER on IntegriCloud