[FFmpeg-cvslog] avfilter/pthread: Use av_mallocz_array()

Michael Niedermayer git at videolan.org
Tue Apr 22 02:48:07 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Apr 22 02:40:20 2014 +0200| [658f5d1f63c941cacc4e8e2b9d32fc7da57c081e] | committer: Michael Niedermayer

avfilter/pthread: Use av_mallocz_array()

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=658f5d1f63c941cacc4e8e2b9d32fc7da57c081e
---

 libavfilter/pthread.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/pthread.c b/libavfilter/pthread.c
index 92c4d08..070b3bd 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);
 



More information about the ffmpeg-cvslog mailing list