diff options
author | Courtland Idstrom <cidstrom@telltalegames.com> | 2018-03-19 14:11:37 -0700 |
---|---|---|
committer | Jan Ekström <jeebjp@gmail.com> | 2018-03-22 20:59:16 +0200 |
commit | 65616bc191b110af6a81aa38b1d15aa9879d8cbc (patch) | |
tree | 0e7249739fe8d6c7b3fd9d2a5183d51d2b912d57 /libavformat | |
parent | c64c97b972c7325a71440a352a7d541a8c92b2da (diff) | |
download | ffmpeg-65616bc191b110af6a81aa38b1d15aa9879d8cbc.tar.gz |
lavf/movenc: write track title metadata for mov files
Track title (atom 'name') is a well defined user data atom for mov files. Existing code (for mp4) only writes title metadata if present.
Relevant reference docs:
https://developer.apple.com/library/content/documentation/QuickTime/Reference/QTRef_AtomsResources/Content/QTRef_AtomsResources4.html#//apple_ref/doc/uid/TP40004285-DontLinkChapterID_1--udta-
https://developer.apple.com/library/content/documentation/QuickTime/QTFF/QTFFChap2/qtff2.html#//apple_ref/doc/uid/TP40000939-CH204-63839
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/movenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c index d681d519e6..ef668eccd5 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -3024,7 +3024,7 @@ static int mov_write_track_udta_tag(AVIOContext *pb, MOVMuxContext *mov, if (ret < 0) return ret; - if (mov->mode & MODE_MP4) + if (mov->mode & (MODE_MP4|MODE_MOV)) mov_write_track_metadata(pb_buf, st, "name", "title"); if ((size = avio_close_dyn_buf(pb_buf, &buf)) > 0) { |