mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avfilter/pthread: Use av_mallocz_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
dcad6ba68a
commit
658f5d1f63
@ -170,7 +170,7 @@ static int thread_init_internal(ThreadContext *c, int nb_threads)
|
|||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
c->nb_threads = nb_threads;
|
c->nb_threads = nb_threads;
|
||||||
c->workers = av_mallocz(sizeof(*c->workers) * nb_threads);
|
c->workers = av_mallocz_array(sizeof(*c->workers), nb_threads);
|
||||||
if (!c->workers)
|
if (!c->workers)
|
||||||
return AVERROR(ENOMEM);
|
return AVERROR(ENOMEM);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user