avformat/vorbiscomment: Fix shadowing

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt
2026-02-21 14:08:31 +01:00
parent 0037c5abdd
commit a2a42aa404
+4 -4
View File
@@ -57,7 +57,7 @@ int ff_vorbiscomment_length(const AVDictionary *m, const char *vendor_string,
return len;
}
int ff_vorbiscomment_write(AVIOContext *pb, const AVDictionary *m,
int ff_vorbiscomment_write(AVIOContext *pb, const AVDictionary *dict,
const char *vendor_string,
AVChapter **chapters, unsigned int nb_chapters)
{
@@ -73,11 +73,11 @@ int ff_vorbiscomment_write(AVIOContext *pb, const AVDictionary *m,
cm_count += av_dict_count(chapters[i]->metadata) + 1;
}
}
if (m) {
int count = av_dict_count(m) + cm_count;
if (dict) {
int count = av_dict_count(dict) + cm_count;
const AVDictionaryEntry *tag = NULL;
avio_wl32(pb, count);
while ((tag = av_dict_iterate(m, tag))) {
while ((tag = av_dict_iterate(dict, tag))) {
int64_t len1 = strlen(tag->key);
int64_t len2 = strlen(tag->value);
if (len1+1+len2 > UINT32_MAX)