You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
compat/os2threads: Check av_malloc() return code
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -66,6 +66,8 @@ static av_always_inline int pthread_create(pthread_t *thread, const pthread_attr
|
|||||||
struct thread_arg *thread_arg;
|
struct thread_arg *thread_arg;
|
||||||
|
|
||||||
thread_arg = av_mallocz(sizeof(struct thread_arg));
|
thread_arg = av_mallocz(sizeof(struct thread_arg));
|
||||||
|
if (!thread_arg)
|
||||||
|
return ENOMEM;
|
||||||
|
|
||||||
thread_arg->start_routine = start_routine;
|
thread_arg->start_routine = start_routine;
|
||||||
thread_arg->arg = arg;
|
thread_arg->arg = arg;
|
||||||
|
Reference in New Issue
Block a user