From 03184d1096dba5da8218f8bebbdfe7c7849c2760 Mon Sep 17 00:00:00 2001
From: Todd Volkert <tvolkert@gmail.com>
Date: Mon, 22 Feb 2016 11:24:03 -0800
Subject: [PATCH] Add @xyz atom for 3gp and mp4 files, not just mov files
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
|
b
|
static int mov_write_udta_tag(AVIOContext *pb, MOVMuxContext *mov,
|
| 3084 | 3084 | return ret; |
| 3085 | 3085 | |
| 3086 | 3086 | if (mov->mode & MODE_3GP) { |
| | 3087 | mov_write_string_metadata(s, pb_buf, "\251xyz", "location", 0); |
| 3087 | 3088 | mov_write_3gp_udta_tag(pb_buf, s, "perf", "artist"); |
| 3088 | 3089 | mov_write_3gp_udta_tag(pb_buf, s, "titl", "title"); |
| 3089 | 3090 | mov_write_3gp_udta_tag(pb_buf, s, "auth", "author"); |
| … |
… |
static int mov_write_udta_tag(AVIOContext *pb, MOVMuxContext *mov,
|
| 3110 | 3111 | mov_write_string_metadata(s, pb_buf, "\251xyz", "location", 0); |
| 3111 | 3112 | mov_write_raw_metadata_tag(s, pb_buf, "XMP_", "xmp"); |
| 3112 | 3113 | } else { |
| | 3114 | mov_write_string_metadata(s, pb_buf, "\251xyz", "location", 0); |
| 3113 | 3115 | /* iTunes meta data */ |
| 3114 | 3116 | mov_write_meta_tag(pb_buf, mov, s); |
| 3115 | 3117 | } |