OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
007547b
)
avcodec/pthread_frame: Use av_mallocz_array()
author
Michael Niedermayer
<michaelni@gmx.at>
Sun, 8 Jun 2014 14:34:20 +0000
(16:34 +0200)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sun, 8 Jun 2014 14:34:20 +0000
(16:34 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/pthread_frame.c
patch
|
blob
|
history
diff --git
a/libavcodec/pthread_frame.c
b/libavcodec/pthread_frame.c
index
e0b5f52
..
9e11038
100644
(file)
--- 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;