[FFmpeg-devel] [PATCH] avformat/oggparsevorbis: Don't append to title metadata
Zsolt Vadász
zsolt_vadasz at protonmail.com
Wed Jan 4 13:37:47 EET 2023
This patch fixes #9642.
Signed-off-by: Zsolt Vadasz <zsolt_vadasz at protonmail.com>
---
libavformat/oggparsevorbis.c | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/libavformat/oggparsevorbis.c b/libavformat/oggparsevorbis.c
index 061840c2ed..02be4e07b8 100644
--- a/libavformat/oggparsevorbis.c
+++ b/libavformat/oggparsevorbis.c
@@ -134,9 +134,13 @@ static int vorbis_parse_single_comment(AVFormatContext *as, AVDictionary **m,
}
} else if (!ogm_chapter(as, t, v)) {
(*updates)++;
- if (av_dict_get(*m, t, NULL, 0))
- av_dict_set(m, t, ";", AV_DICT_APPEND);
- av_dict_set(m, t, v, AV_DICT_APPEND);
+ if(!av_strncasecmp("title", t, strlen("title")))
+ av_dict_set(m, t, v, 0);
+ else {
+ if (av_dict_get(*m, t, NULL, 0))
+ av_dict_set(m, t, ";", AV_DICT_APPEND);
+ av_dict_set(m, t, v, AV_DICT_APPEND);
+ }
}
end:
t[tl] = '=';
--
2.39.0
More information about the ffmpeg-devel
mailing list