avcodec/pthread_frame: Use av_mallocz_array()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2014-06-08 16:34:20 +02:00
parent 007547b282
commit ab1e191720
1 changed files with 1 additions and 1 deletions

View File

@ -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;