This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

commit d84bb2fbcb08df9b0d09e0316bac864d1a625100
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Tue Oct 6 23:40:45 2026 +0200
Commit:     michaelni <[email protected]>
CommitDate: Sun Oct 11 02:37:58 2026 +0000

    avformat/webmdashenc: Take the language from the escaped metadata
---
 libavformat/webmdashenc.c | 13 +++----------
 1 file changed, 3 insertions(+), 10 deletions(-)

diff --git a/libavformat/webmdashenc.c b/libavformat/webmdashenc.c
index 63dbe28bb1..c463c7c665 100644
--- a/libavformat/webmdashenc.c
+++ b/libavformat/webmdashenc.c
@@ -334,16 +334,9 @@ static int write_adaptation_set(AVFormatContext *s, int 
as_index)
                 par->codec_type == AVMEDIA_TYPE_VIDEO ? "video" : "audio");
     avio_printf(pb, " codecs=\"%s\"", get_codec_name(par->codec_id));
 
-    lang = av_dict_get(st->metadata, "language", NULL, 0);
-    if (lang) {
-        char *escaped;
-        int ret = av_escape(&escaped, lang->value, NULL, AV_ESCAPE_MODE_XML,
-                            AV_ESCAPE_FLAG_XML_DOUBLE_QUOTES);
-        if (ret < 0)
-            return ret;
-        avio_printf(pb, " lang=\"%s\"", escaped);
-        av_free(escaped);
-    }
+    lang = av_dict_get(w->escaped_metadata[st->index], "language", NULL, 0);
+    if (lang)
+        avio_printf(pb, " lang=\"%s\"", lang->value);
 
     if (par->codec_type == AVMEDIA_TYPE_VIDEO && width_in_as)
         avio_printf(pb, " width=\"%d\"", par->width);

-- 
To stop receiving notification emails like this one, please contact
[email protected].
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to