[FFmpeg-devel] [PATCH 44/60] avformat/vorbiscomment: fix variable shadowing
Marvin Scholz
epirat07 at gmail.com
Mon Sep 9 02:28:11 EEST 2024
---
libavformat/vorbiscomment.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/libavformat/vorbiscomment.c b/libavformat/vorbiscomment.c
index abe12fd586..af51c237e6 100644
--- a/libavformat/vorbiscomment.c
+++ b/libavformat/vorbiscomment.c
@@ -62,7 +62,7 @@ int64_t 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 *meta,
const char *vendor_string,
AVChapter **chapters, unsigned int nb_chapters)
{
@@ -75,11 +75,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 (meta) {
+ int count = av_dict_count(meta) + cm_count;
const AVDictionaryEntry *tag = NULL;
avio_wl32(pb, count);
- while ((tag = av_dict_iterate(m, tag))) {
+ while ((tag = av_dict_iterate(meta, tag))) {
int64_t len1 = strlen(tag->key);
int64_t len2 = strlen(tag->value);
if (len1+1+len2 > UINT32_MAX)
--
2.39.3 (Apple Git-146)
More information about the ffmpeg-devel
mailing list