avformat/apetag: use av_dict_iterate

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Marvin Scholz 2022-11-26 15:46:44 +01:00 committed by Andreas Rheinhardt
parent 4bf8c9c2d8
commit 521d8dcf88
1 changed files with 2 additions and 2 deletions

View File

@ -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)) {