mirror of https://git.ffmpeg.org/ffmpeg.git
avformat/ffmetaenc: use av_dict_iterate
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
b31c16d625
commit
995616b752
|
@ -40,8 +40,8 @@ static void write_escape_str(AVIOContext *s, const uint8_t *str)
|
||||||
|
|
||||||
static void write_tags(AVIOContext *s, AVDictionary *m)
|
static void write_tags(AVIOContext *s, AVDictionary *m)
|
||||||
{
|
{
|
||||||
AVDictionaryEntry *t = NULL;
|
const AVDictionaryEntry *t = NULL;
|
||||||
while ((t = av_dict_get(m, "", t, AV_DICT_IGNORE_SUFFIX))) {
|
while ((t = av_dict_iterate(m, t))) {
|
||||||
write_escape_str(s, t->key);
|
write_escape_str(s, t->key);
|
||||||
avio_w8(s, '=');
|
avio_w8(s, '=');
|
||||||
write_escape_str(s, t->value);
|
write_escape_str(s, t->value);
|
||||||
|
|
Loading…
Reference in New Issue