diff options
author | Marvin Scholz <epirat07@gmail.com> | 2022-11-26 15:46:41 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-12-01 11:21:14 +0100 |
commit | 995616b752ffc90943aec6b140f82ad79c38b497 (patch) | |
tree | 95a59343a7d593bb75d0095f9c367857f983bd13 | |
parent | b31c16d62555de20f2507dbb70e9fe73b16ba8f2 (diff) |
avformat/ffmetaenc: use av_dict_iterate
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r-- | libavformat/ffmetaenc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/ffmetaenc.c b/libavformat/ffmetaenc.c index edd66e1a04..f27ac1ac50 100644 --- a/libavformat/ffmetaenc.c +++ b/libavformat/ffmetaenc.c @@ -40,8 +40,8 @@ static void write_escape_str(AVIOContext *s, const uint8_t *str) static void write_tags(AVIOContext *s, AVDictionary *m) { - AVDictionaryEntry *t = NULL; - while ((t = av_dict_get(m, "", t, AV_DICT_IGNORE_SUFFIX))) { + const AVDictionaryEntry *t = NULL; + while ((t = av_dict_iterate(m, t))) { write_escape_str(s, t->key); avio_w8(s, '='); write_escape_str(s, t->value); |