diff mbox series

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

Message ID ME3PR01MB56244EE05796208141195598DA229@ME3PR01MB5624.ausprd01.prod.outlook.com
State New
Headers show
Series [FFmpeg-devel,1/2] avformat/movenc: fix type of 'Title of the content' in udta box | expand

Checks

Context Check Description
andriy/configure_x86 warning Failed to apply patch
andriy/configure_ppc warning Failed to apply patch
andriy/configure_aarch64_jetson warning Failed to apply patch

Commit Message

Wang Chuan Jan. 28, 2022, 3:23 a.m. UTC
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@outlook.com>
---
  libavformat/movenc.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

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