Commit b7c577ce authored by Marvin Scholz's avatar Marvin Scholz Committed by Andreas Rheinhardt

avformat/metadata: use av_dict_iterate

Signed-off-by: 's avatarAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
parent 562d19b5
......@@ -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++)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment