X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavutil%2Fdict.c;h=9d3d96c58b64c78a9f5ad0f5849665827d7bd0cf;hb=56450a0ee4fdda160f4039fc2ae33edfd27765c9;hp=0ea71386e5aeaaeae40dcf7b656b3e36872bc164;hpb=0084eed5bffebd7f3915bc0f9eba7350e8bc0ef7;p=ffmpeg diff --git a/libavutil/dict.c b/libavutil/dict.c index 0ea71386e5a..9d3d96c58b6 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;