From 658f5d1f63c941cacc4e8e2b9d32fc7da57c081e Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Tue, 22 Apr 2014 02:40:20 +0200 Subject: [PATCH] avfilter/pthread: Use av_mallocz_array() Signed-off-by: Michael Niedermayer --- libavfilter/pthread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/pthread.c b/libavfilter/pthread.c index 92c4d08b4d..070b3bded5 100644 --- a/libavfilter/pthread.c +++ b/libavfilter/pthread.c @@ -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);