[FFmpeg-devel] [PATCH v2 24/31] avformat/ffmetaenc: use av_dict_iterate

Marvin Scholz epirat07 at gmail.com
Sat Nov 26 16:46:41 EET 2022


---
 libavformat/ffmetaenc.c | 4 ++--
 1 file 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);
-- 
2.37.0 (Apple Git-136)



More information about the ffmpeg-devel mailing list