mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
dict.c: minor simplification.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
This commit is contained in:
parent
fcb11ec291
commit
f0de01856f
@ -90,10 +90,9 @@ int av_dict_set(AVDictionary **pm, const char *key, const char *value,
|
||||
} else {
|
||||
AVDictionaryEntry *tmp = av_realloc(m->elems,
|
||||
(m->count + 1) * sizeof(*m->elems));
|
||||
if (tmp)
|
||||
m->elems = tmp;
|
||||
else
|
||||
if (!tmp)
|
||||
return AVERROR(ENOMEM);
|
||||
m->elems = tmp;
|
||||
}
|
||||
if (value) {
|
||||
if (flags & AV_DICT_DONT_STRDUP_KEY)
|
||||
|
Loading…
Reference in New Issue
Block a user