Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
* [FFmpeg-devel] [PATCH] avformat/oggparsevorbis: Don't append to title metadata
@ 2023-01-04 11:37 Zsolt Vadász
  0 siblings, 0 replies; only message in thread
From: Zsolt Vadász @ 2023-01-04 11:37 UTC (permalink / raw)
  To: FFmpeg development discussions and patches

This patch fixes #9642.

Signed-off-by: Zsolt Vadasz <zsolt_vadasz@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

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-01-04 11:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-04 11:37 [FFmpeg-devel] [PATCH] avformat/oggparsevorbis: Don't append to title metadata Zsolt Vadász

Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
		ffmpegdev@gitmailbox.com
	public-inbox-index ffmpegdev

Example config snippet for mirrors.


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git