diff options
author | Marvin Scholz <epirat07@gmail.com> | 2022-11-26 15:46:23 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-12-01 11:21:14 +0100 |
commit | f8584c13f0b35a22badf952e88f993d68fa5f980 (patch) | |
tree | 8d81cfefa80c16f1bb6ddc84024b043c5a2c91e0 /libavformat | |
parent | 3000cf7a57e010c43328025019ef29b930346de4 (diff) | |
download | ffmpeg-f8584c13f0b35a22badf952e88f993d68fa5f980.tar.gz |
avformat/smjpegenc: use av_dict_iterate
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/smjpegenc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/smjpegenc.c b/libavformat/smjpegenc.c index 888ece2f7c..edba08cf9b 100644 --- a/libavformat/smjpegenc.c +++ b/libavformat/smjpegenc.c @@ -35,7 +35,7 @@ typedef struct SMJPEGMuxContext { static int smjpeg_write_header(AVFormatContext *s) { - AVDictionaryEntry *t = NULL; + const AVDictionaryEntry *t = NULL; AVIOContext *pb = s->pb; int n, tag; @@ -48,7 +48,7 @@ static int smjpeg_write_header(AVFormatContext *s) avio_wb32(pb, 0); ff_standardize_creation_time(s); - while ((t = av_dict_get(s->metadata, "", t, AV_DICT_IGNORE_SUFFIX))) { + while ((t = av_dict_iterate(s->metadata, t))) { avio_wl32(pb, SMJPEG_TXT); avio_wb32(pb, strlen(t->key) + strlen(t->value) + 3); avio_write(pb, t->key, strlen(t->key)); |