[FFmpeg-devel] [PATCH 1/2] avformat/movenc: fix type of 'Title of the content' in udta box

Wang Chuan ouchuanm at outlook.com
Fri Jan 28 05:23:49 EET 2022


The type of 'Title of the content' should be "\xa9nam"(type begin with
\xa9 means the following text is defined to be international text) not
"name"(which means 'Name of object').
And when we try to decode mov header, we recognize "\xa9nam" as title
in mov_read_udta_string(mov.c)

Signed-off-by: Wang Chuan <ouchuanm at outlook.com>
---
  libavformat/movenc.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index 4c868919ae..c4dcb41fbb 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -3375,7 +3375,7 @@ static int mov_write_track_udta_tag(AVIOContext 
*pb, MOVMuxContext *mov,
          return ret;
       if (mov->mode & (MODE_MP4|MODE_MOV))
-        mov_write_track_metadata(pb_buf, st, "name", "title");
+        mov_write_track_metadata(pb_buf, st, "\xa9nam", "title");
       if (mov->mode & MODE_MP4) {
          if ((ret = mov_write_track_kinds(pb_buf, st)) < 0)
-- 
2.29.2



More information about the ffmpeg-devel mailing list