Skip to content

Commit 4bc5eb2

Browse files
committed
avutil/dict: av_realloc -> av_realloc_array()
Signed-off-by: Limin Wang <[email protected]>
1 parent a1223dd commit 4bc5eb2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libavutil/dict.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ int av_dict_set(AVDictionary **pm, const char *key, const char *value,
103103
av_free(tag->key);
104104
*tag = m->elems[--m->count];
105105
} else if (copy_value) {
106-
AVDictionaryEntry *tmp = av_realloc(m->elems,
107-
(m->count + 1) * sizeof(*m->elems));
106+
AVDictionaryEntry *tmp = av_realloc_array(m->elems,
107+
m->count + 1, sizeof(*m->elems));
108108
if (!tmp)
109109
goto err_out;
110110
m->elems = tmp;

0 commit comments

Comments
 (0)