You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avformat/asfenc: use av_dict_iterate
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
committed by
Andreas Rheinhardt
parent
521d8dcf88
commit
fb93d3d043
@@ -570,10 +570,10 @@ static int asf_write_header1(AVFormatContext *s, int64_t file_size,
|
|||||||
end_header(pb, hpos);
|
end_header(pb, hpos);
|
||||||
}
|
}
|
||||||
if (metadata_count) {
|
if (metadata_count) {
|
||||||
AVDictionaryEntry *tag = NULL;
|
const AVDictionaryEntry *tag = NULL;
|
||||||
hpos = put_header(pb, &ff_asf_extended_content_header);
|
hpos = put_header(pb, &ff_asf_extended_content_header);
|
||||||
avio_wl16(pb, metadata_count);
|
avio_wl16(pb, metadata_count);
|
||||||
while ((tag = av_dict_get(s->metadata, "", tag, AV_DICT_IGNORE_SUFFIX))) {
|
while ((tag = av_dict_iterate(s->metadata, tag))) {
|
||||||
put_str16(pb, dyn_buf, tag->key);
|
put_str16(pb, dyn_buf, tag->key);
|
||||||
avio_wl16(pb, 0);
|
avio_wl16(pb, 0);
|
||||||
put_str16(pb, dyn_buf, tag->value);
|
put_str16(pb, dyn_buf, tag->value);
|
||||||
|
Reference in New Issue
Block a user