[vlc-commits] demux: libmp4: add xid_ atom

Francois Cartegnie git at videolan.org
Thu Oct 16 20:05:22 CEST 2014


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Oct 16 19:01:58 2014 +0200| [c08f4515e179c8fc72485c7c9eeb1c43899b3710] | committer: Francois Cartegnie

demux: libmp4: add xid_ atom

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c08f4515e179c8fc72485c7c9eeb1c43899b3710
---

 modules/demux/mp4/libmp4.c |    1 +
 modules/demux/mp4/libmp4.h |    1 +
 modules/demux/mp4/meta.c   |    1 +
 3 files changed, 3 insertions(+)

diff --git a/modules/demux/mp4/libmp4.c b/modules/demux/mp4/libmp4.c
index f270b55..9d868ed 100644
--- a/modules/demux/mp4/libmp4.c
+++ b/modules/demux/mp4/libmp4.c
@@ -3719,6 +3719,7 @@ static const struct
     { ATOM_gnre,    MP4_ReadBox_Metadata,     MP4_FreeBox_Common,  ATOM_ilst },
     { ATOM_rtng,    MP4_ReadBox_Metadata,     MP4_FreeBox_Common,  ATOM_ilst },
     { ATOM_trkn,    MP4_ReadBox_Metadata,     MP4_FreeBox_Common,  ATOM_ilst },
+    { ATOM_xid_,    MP4_ReadBox_Metadata,     MP4_FreeBox_Common,  ATOM_ilst },
 
     /* udta */
     { ATOM_0xa9ART, MP4_ReadBox_0xa9xxx,      MP4_FreeBox_0xa9xxx, ATOM_udta },
diff --git a/modules/demux/mp4/libmp4.h b/modules/demux/mp4/libmp4.h
index 2d65d5a..a4d62bb 100644
--- a/modules/demux/mp4/libmp4.h
+++ b/modules/demux/mp4/libmp4.h
@@ -289,6 +289,7 @@
 #define ATOM_cnID VLC_FOURCC( 'c', 'n', 'I', 'D' )
 #define ATOM_covr VLC_FOURCC( 'c', 'o', 'v', 'r' )
 #define ATOM_rtng VLC_FOURCC( 'r', 't', 'n', 'g' )
+#define ATOM_xid_ VLC_FOURCC( 'x', 'i', 'd', ' ' )
 
 #define ATOM_chap VLC_FOURCC( 'c', 'h', 'a', 'p' )
 #define ATOM_SDLN VLC_FOURCC( 'S', 'D', 'L', 'N' )
diff --git a/modules/demux/mp4/meta.c b/modules/demux/mp4/meta.c
index ce1c2b7..d0f9417 100644
--- a/modules/demux/mp4/meta.c
+++ b/modules/demux/mp4/meta.c
@@ -90,6 +90,7 @@ static const struct
     { ATOM_0xa9xpd, N_("Executive Producer") },
     { ATOM_aART,    N_("Album Artist") },
     { ATOM_vndr,    N_("Vendor") },
+    { ATOM_xid_,    N_("Catalog Number") },
     { 0, "" },
 };
 



More information about the vlc-commits mailing list