diff options
author | Marvin Scholz <epirat07@gmail.com> | 2022-11-26 15:46:28 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-12-01 11:21:14 +0100 |
commit | aa4edbb633110ab42f815198f9d604894ef94000 (patch) | |
tree | c32de54379ab30730d34eac34681669ce812a373 | |
parent | 0b3092aed30ffd38361b2c16be1a875c3f6d6c9e (diff) | |
download | ffmpeg-aa4edbb633110ab42f815198f9d604894ef94000.tar.gz |
avcodec/avpacket: use av_dict_iterate
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r-- | libavcodec/avpacket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/avpacket.c b/libavcodec/avpacket.c index bcbc4166cb..5fef65e97a 100644 --- a/libavcodec/avpacket.c +++ b/libavcodec/avpacket.c @@ -316,7 +316,7 @@ uint8_t *av_packet_pack_dictionary(AVDictionary *dict, size_t *size) const AVDictionaryEntry *t = NULL; size_t total_length = 0; - while ((t = av_dict_get(dict, "", t, AV_DICT_IGNORE_SUFFIX))) { + while ((t = av_dict_iterate(dict, t))) { for (int i = 0; i < 2; i++) { const char *str = i ? t->value : t->key; const size_t len = strlen(str) + 1; |