aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/dict.c
diff options
context:
space:
mode:
authorLimin Wang <lance.lmwang@gmail.com>2020-05-25 23:21:27 +0800
committerLimin Wang <lance.lmwang@gmail.com>2020-06-06 10:32:07 +0800
commit4bc5eb27a74e3eb1805f21a33d4ef08f8f7026e4 (patch)
tree5abb182c5014c3bbdbca0fad3ecf7c53042b796d /libavutil/dict.c
parenta1223ddc5692772198a02600ecff2545f32b37be (diff)
downloadffmpeg-4bc5eb27a74e3eb1805f21a33d4ef08f8f7026e4.tar.gz
avutil/dict: av_realloc -> av_realloc_array()
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
Diffstat (limited to 'libavutil/dict.c')
-rw-r--r--libavutil/dict.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavutil/dict.c b/libavutil/dict.c
index 0ea71386e5..9d3d96c58b 100644
--- a/libavutil/dict.c
+++ b/libavutil/dict.c
@@ -103,8 +103,8 @@ int av_dict_set(AVDictionary **pm, const char *key, const char *value,
av_free(tag->key);
*tag = m->elems[--m->count];
} else if (copy_value) {
- AVDictionaryEntry *tmp = av_realloc(m->elems,
- (m->count + 1) * sizeof(*m->elems));
+ AVDictionaryEntry *tmp = av_realloc_array(m->elems,
+ m->count + 1, sizeof(*m->elems));
if (!tmp)
goto err_out;
m->elems = tmp;