aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-04-13 23:39:49 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-04-13 23:39:49 +0200
commit2ebacb0fc4449f250d172776c4d3e88914b6f151 (patch)
treeadb26f34c098c550fd74ba2c1e694e59b046d122
parentd42a61922be7362a2cbdd0ecce2b7effd64600aa (diff)
downloadffmpeg-2ebacb0fc4449f250d172776c4d3e88914b6f151.tar.gz
avformat/network: use av_malloc_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/network.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/network.c b/libavformat/network.c
index 5e2bcf8d15..5e574e3bbe 100644
--- 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);