diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-06-08 16:34:20 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-06-08 16:34:20 +0200 |
commit | ab1e1917209cfad00f56ac5f0a2fa854d377cd40 (patch) | |
tree | cebf14376495c95bfb2df0477dc43f1b5fdd06a2 /libavcodec/pthread_frame.c | |
parent | 007547b2820fba443b94484a75fbfdefee896729 (diff) | |
download | ffmpeg-ab1e1917209cfad00f56ac5f0a2fa854d377cd40.tar.gz |
avcodec/pthread_frame: Use av_mallocz_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/pthread_frame.c')
-rw-r--r-- | libavcodec/pthread_frame.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/pthread_frame.c b/libavcodec/pthread_frame.c index e0b5f527a3..9e11038c52 100644 --- a/libavcodec/pthread_frame.c +++ b/libavcodec/pthread_frame.c @@ -631,7 +631,7 @@ int ff_frame_thread_init(AVCodecContext *avctx) avctx->internal->thread_ctx = fctx = av_mallocz(sizeof(FrameThreadContext)); - fctx->threads = av_mallocz(sizeof(PerThreadContext) * thread_count); + fctx->threads = av_mallocz_array(thread_count, sizeof(PerThreadContext)); pthread_mutex_init(&fctx->buffer_mutex, NULL); fctx->delaying = 1; |