avfilter/pthread: Use av_mallocz_array()
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 22 Apr 2014 00:40:20 +0000 (02:40 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 22 Apr 2014 00:40:20 +0000 (02:40 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/pthread.c

index 92c4d08..070b3bd 100644 (file)
@@ -170,7 +170,7 @@ static int thread_init_internal(ThreadContext *c, int nb_threads)
         return 1;
 
     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)
         return AVERROR(ENOMEM);