[6/8] movenc: Write ?xyz geotag metadata for mov files

Message ID 1463569341-73691-6-git-send-email-martin@martin.st
State Committed
Commit daec1651f1c0f8f8e704db375a2ecb364a722fa1
Headers show

Commit Message

Martin Storsjö May 18, 2016, 11:02 a.m.
From: Michael Niedermayer <michaelni@gmx.at>

---
 libavformat/movenc.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Vittorio Giovara May 18, 2016, 4:07 p.m. | #1
On Wed, May 18, 2016 at 7:02 AM, Martin Storsjö <martin@martin.st> wrote:
> From: Michael Niedermayer <michaelni@gmx.at>
>
> ---
>  libavformat/movenc.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/libavformat/movenc.c b/libavformat/movenc.c
> index ae754e1..9b36ca9 100644
> --- a/libavformat/movenc.c
> +++ b/libavformat/movenc.c
> @@ -2195,6 +2195,7 @@ static int mov_write_udta_tag(AVIOContext *pb, MOVMuxContext *mov,
>          mov_write_string_metadata(s, pb_buf, "\251cpy", "copyright",   0);
>          mov_write_string_metadata(s, pb_buf, "\251mak", "make",        0);
>          mov_write_string_metadata(s, pb_buf, "\251mod", "model",       0);
> +        mov_write_string_metadata(s, pb_buf, "\251xyz", "location",    0);
>      } else {
>          /* iTunes meta data */
>          mov_write_meta_tag(pb_buf, mov, s);
> --

ok

Patch

diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index ae754e1..9b36ca9 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -2195,6 +2195,7 @@  static int mov_write_udta_tag(AVIOContext *pb, MOVMuxContext *mov,
         mov_write_string_metadata(s, pb_buf, "\251cpy", "copyright",   0);
         mov_write_string_metadata(s, pb_buf, "\251mak", "make",        0);
         mov_write_string_metadata(s, pb_buf, "\251mod", "model",       0);
+        mov_write_string_metadata(s, pb_buf, "\251xyz", "location",    0);
     } else {
         /* iTunes meta data */
         mov_write_meta_tag(pb_buf, mov, s);