summaryrefslogtreecommitdiff
path: root/libavformat/metadata.c
diff options
context:
space:
mode:
authorMarvin Scholz <epirat07@gmail.com>2022-11-26 15:46:35 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-12-01 11:21:14 +0100
commitb7c577cec76039a7fa02998706916b2ab7cc173f (patch)
tree386523e0fadfe4325fd16b361892db7a3076a438 /libavformat/metadata.c
parent562d19b5031f23d0d029185b2cbd8ff02a31a7b6 (diff)
downloadffmpeg-b7c577cec76039a7fa02998706916b2ab7cc173f.tar.gz
avformat/metadata: use av_dict_iterate
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavformat/metadata.c')
-rw-r--r--libavformat/metadata.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/metadata.c b/libavformat/metadata.c
index b9b6de7972..a0258ea125 100644
--- a/libavformat/metadata.c
+++ b/libavformat/metadata.c
@@ -29,14 +29,14 @@ void ff_metadata_conv(AVDictionary **pm, const AVMetadataConv *d_conv,
/* TODO: use binary search to look up the two conversion tables
if the tables are getting big enough that it would matter speed wise */
const AVMetadataConv *sc, *dc;
- AVDictionaryEntry *mtag = NULL;
+ const AVDictionaryEntry *mtag = NULL;
AVDictionary *dst = NULL;
const char *key;
if (d_conv == s_conv || !pm)
return;
- while ((mtag = av_dict_get(*pm, "", mtag, AV_DICT_IGNORE_SUFFIX))) {
+ while ((mtag = av_dict_iterate(*pm, mtag))) {
key = mtag->key;
if (s_conv)
for (sc=s_conv; sc->native; sc++)