Commit 521d8dcf authored by Marvin Scholz's avatar Marvin Scholz Committed by Andreas Rheinhardt

avformat/apetag: use av_dict_iterate

Signed-off-by: 's avatarAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
parent 4bf8c9c2
......@@ -175,7 +175,7 @@ static int string_is_ascii(const uint8_t *str)
int ff_ape_write_tag(AVFormatContext *s)
{
AVDictionaryEntry *e = NULL;
const AVDictionaryEntry *e = NULL;
int size, ret, count = 0;
AVIOContext *dyn_bc;
uint8_t *dyn_buf;
......@@ -184,7 +184,7 @@ int ff_ape_write_tag(AVFormatContext *s)
return ret;
ff_standardize_creation_time(s);
while ((e = av_dict_get(s->metadata, "", e, AV_DICT_IGNORE_SUFFIX))) {
while ((e = av_dict_iterate(s->metadata, e))) {
int val_len;
if (!string_is_ascii(e->key)) {
......
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