diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-09-08 19:11:53 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-09-08 19:11:53 +0000 |
commit | bed4fc54c947b9e36d2103b400d438bfb4dd80dd (patch) | |
tree | 149a05fd61d15195582903451d3714bcb07b03a1 /libavformat/movenc.c | |
parent | 9345ae6f782719156acb5e0474226eb15d9f7ce2 (diff) | |
download | ffmpeg-bed4fc54c947b9e36d2103b400d438bfb4dd80dd.tar.gz |
write copyright metadata tag
Originally committed as revision 15276 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/movenc.c')
-rw-r--r-- | libavformat/movenc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c index 8ddc8e9e24..4463b6950c 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -1225,6 +1225,7 @@ static int mov_write_ilst_tag(ByteIOContext *pb, MOVContext *mov, mov_write_string_tag(pb, "\251too", LIBAVFORMAT_IDENT, 1); mov_write_string_tag(pb, "\251cmt", s->comment , 1); mov_write_string_tag(pb, "\251gen", s->genre , 1); + mov_write_string_tag(pb, "\251cpy", s->copyright , 1); mov_write_trkn_tag(pb, mov, s); return updateSize(pb, pos); } @@ -1321,6 +1322,7 @@ static int mov_write_udta_tag(ByteIOContext *pb, MOVContext *mov, mov_write_3gp_udta_tag(pb, s, "gnre", s->genre); mov_write_3gp_udta_tag(pb, s, "dscp", s->comment); mov_write_3gp_udta_tag(pb, s, "albm", s->album); + mov_write_3gp_udta_tag(pb, s, "cprt", s->copyright); mov_write_3gp_udta_tag(pb, s, "yrrc", "nil"); } else if (mov->mode == MODE_MOV) { // the title field breaks gtkpod with mp4 and my suspicion is that stuff is not valid in mp4 mov_write_string_tag(pb, "\251nam", s->title , 0); @@ -1330,6 +1332,7 @@ static int mov_write_udta_tag(ByteIOContext *pb, MOVContext *mov, mov_write_string_tag(pb, "\251enc", LIBAVFORMAT_IDENT, 0); mov_write_string_tag(pb, "\251des", s->comment , 0); mov_write_string_tag(pb, "\251gen", s->genre , 0); + mov_write_string_tag(pb, "\251cpy", s->copyright , 0); } else { /* iTunes meta data */ mov_write_meta_tag(pb, mov, s); |