Commit aa4edbb6 authored by Marvin Scholz's avatar Marvin Scholz Committed by Andreas Rheinhardt

avcodec/avpacket: use av_dict_iterate

Signed-off-by: 's avatarAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
parent 0b3092ae
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment