mirror of https://git.ffmpeg.org/ffmpeg.git
avformat/apetag: use av_dict_iterate
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
4bf8c9c2d8
commit
521d8dcf88
|
@ -175,7 +175,7 @@ static int string_is_ascii(const uint8_t *str)
|
||||||
|
|
||||||
int ff_ape_write_tag(AVFormatContext *s)
|
int ff_ape_write_tag(AVFormatContext *s)
|
||||||
{
|
{
|
||||||
AVDictionaryEntry *e = NULL;
|
const AVDictionaryEntry *e = NULL;
|
||||||
int size, ret, count = 0;
|
int size, ret, count = 0;
|
||||||
AVIOContext *dyn_bc;
|
AVIOContext *dyn_bc;
|
||||||
uint8_t *dyn_buf;
|
uint8_t *dyn_buf;
|
||||||
|
@ -184,7 +184,7 @@ int ff_ape_write_tag(AVFormatContext *s)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
ff_standardize_creation_time(s);
|
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;
|
int val_len;
|
||||||
|
|
||||||
if (!string_is_ascii(e->key)) {
|
if (!string_is_ascii(e->key)) {
|
||||||
|
|
Loading…
Reference in New Issue