[FFmpeg-cvslog] avformat/asfenc: use av_dict_iterate

Marvin Scholz git at videolan.org
Thu Dec 1 12:40:00 EET 2022


ffmpeg | branch: master | Marvin Scholz <epirat07 at gmail.com> | Sat Nov 26 15:46:45 2022 +0100| [fb93d3d04393086699d5d0e237cba622cbc725cd] | committer: Andreas Rheinhardt

avformat/asfenc: use av_dict_iterate

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=fb93d3d04393086699d5d0e237cba622cbc725cd
---

 libavformat/asfenc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavformat/asfenc.c b/libavformat/asfenc.c
index 70800a6df5..47240fc0a8 100644
--- a/libavformat/asfenc.c
+++ b/libavformat/asfenc.c
@@ -570,10 +570,10 @@ static int asf_write_header1(AVFormatContext *s, int64_t file_size,
         end_header(pb, hpos);
     }
     if (metadata_count) {
-        AVDictionaryEntry *tag = NULL;
+        const AVDictionaryEntry *tag = NULL;
         hpos = put_header(pb, &ff_asf_extended_content_header);
         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);
             avio_wl16(pb, 0);
             put_str16(pb, dyn_buf, tag->value);



More information about the ffmpeg-cvslog mailing list