aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/pthread.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-04-22 02:40:20 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-04-22 02:40:20 +0200
commit658f5d1f63c941cacc4e8e2b9d32fc7da57c081e (patch)
tree63b107d1b0ab7d1f7f5a000e3e5b5c98f45a4ec7 /libavfilter/pthread.c
parentdcad6ba68abbba579cf3d90ebffce13c7d68f41c (diff)
downloadffmpeg-658f5d1f63c941cacc4e8e2b9d32fc7da57c081e.tar.gz
avfilter/pthread: Use av_mallocz_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/pthread.c')
-rw-r--r--libavfilter/pthread.c2
1 files changed, 1 insertions, 1 deletions
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);