[FFmpeg-devel] [PATCH] Add @xyz atom for 3gp and mp4 files, not just mov files
Todd Volkert
tvolkert at gmail.com
Fri Apr 29 05:44:50 CEST 2016
Resolves https://trac.ffmpeg.org/ticket/4209
---
libavformat/movenc.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index b9c0f7a..c237736 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -3084,6 +3084,7 @@ static int mov_write_udta_tag(AVIOContext *pb,
MOVMuxContext *mov,
return ret;
if (mov->mode & MODE_3GP) {
+ mov_write_string_metadata(s, pb_buf, "\251xyz", "location", 0);
mov_write_3gp_udta_tag(pb_buf, s, "perf", "artist");
mov_write_3gp_udta_tag(pb_buf, s, "titl", "title");
mov_write_3gp_udta_tag(pb_buf, s, "auth", "author");
@@ -3110,6 +3111,7 @@ static int mov_write_udta_tag(AVIOContext *pb,
MOVMuxContext *mov,
mov_write_string_metadata(s, pb_buf, "\251xyz", "location", 0);
mov_write_raw_metadata_tag(s, pb_buf, "XMP_", "xmp");
} else {
+ mov_write_string_metadata(s, pb_buf, "\251xyz", "location", 0);
/* iTunes meta data */
mov_write_meta_tag(pb_buf, mov, s);
}
More information about the ffmpeg-devel
mailing list