summaryrefslogtreecommitdiff
path: root/libavutil/dict.c
diff options
context:
space:
mode:
authorMarvin Scholz <epirat07@gmail.com>2022-09-24 16:36:57 +0200
committerAnton Khirnov <anton@khirnov.net>2022-11-06 08:26:50 +0100
commit3c2050b749d7813ec302106ef56129a9117c091c (patch)
tree6a40b66d87377ee696e7a74e9ffe117d1850f806 /libavutil/dict.c
parent5f7c5a0bd72b3903919d08f7b6edb5a148b87d5b (diff)
downloadffmpeg-3c2050b749d7813ec302106ef56129a9117c091c.tar.gz
avutil/dict: Use av_dict_iterate in av_dict_copy
Signed-off-by: Anton Khirnov <anton@khirnov.net>
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 5098b6d0b6..156d79b819 100644
--- a/libavutil/dict.c
+++ b/libavutil/dict.c
@@ -236,9 +236,9 @@ void av_dict_free(AVDictionary **pm)
int av_dict_copy(AVDictionary **dst, const AVDictionary *src, int flags)
{
- AVDictionaryEntry *t = NULL;
+ const AVDictionaryEntry *t = NULL;
- while ((t = av_dict_get(src, "", t, AV_DICT_IGNORE_SUFFIX))) {
+ while ((t = av_dict_iterate(src, t))) {
int ret = av_dict_set(dst, t->key, t->value, flags);
if (ret < 0)
return ret;