mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-24 02:21:11 +01:00
avcodec/avpacket: use av_dict_iterate
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
0b3092aed3
commit
aa4edbb633
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue