git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d42a619
)
avformat/network: use av_malloc_array()
author
Michael Niedermayer
<michaelni@gmx.at>
Sun, 13 Apr 2014 21:39:49 +0000
(23:39 +0200)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sun, 13 Apr 2014 21:39:49 +0000
(23:39 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/network.c
patch
|
blob
|
history
diff --git
a/libavformat/network.c
b/libavformat/network.c
index
5e2bcf8
..
5e574e3
100644
(file)
--- a/
libavformat/network.c
+++ b/
libavformat/network.c
@@
-76,7
+76,7
@@
void ff_tls_init(void)
#if HAVE_THREADS
if (!CRYPTO_get_locking_callback()) {
int i;
- openssl_mutexes = av_malloc
(sizeof(pthread_mutex_t) *
CRYPTO_num_locks());
+ openssl_mutexes = av_malloc
_array(sizeof(pthread_mutex_t),
CRYPTO_num_locks());
for (i = 0; i < CRYPTO_num_locks(); i++)
pthread_mutex_init(&openssl_mutexes[i], NULL);
CRYPTO_set_locking_callback(openssl_lock);