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

Francois Cartegnie git at videolan.org
Thu Dec 18 22:39:56 CET 2014


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Dec 15 15:56:40 2014 +0100| [dbfd7a5d44e3b0e8bef4628ab7aa7dc2bb71f394] | committer: Francois Cartegnie

demux: libmp4: add styp atom

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

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

diff --git a/modules/demux/mp4/libmp4.c b/modules/demux/mp4/libmp4.c
index 1a87a71..60bcdc4 100644
--- a/modules/demux/mp4/libmp4.c
+++ b/modules/demux/mp4/libmp4.c
@@ -3605,6 +3605,7 @@ static const struct
 
     /* specific box */
     { ATOM_ftyp,    MP4_ReadBox_ftyp,         MP4_FreeBox_ftyp, 0 },
+    { ATOM_styp,    MP4_ReadBox_ftyp,         MP4_FreeBox_ftyp, 0 },
     { ATOM_cmov,    MP4_ReadBox_cmov,         MP4_FreeBox_Common, 0 },
     { ATOM_mvhd,    MP4_ReadBox_mvhd,         MP4_FreeBox_Common, ATOM_moov },
     { ATOM_mvhd,    MP4_ReadBox_mvhd,         MP4_FreeBox_Common, ATOM_foov },
diff --git a/modules/demux/mp4/libmp4.h b/modules/demux/mp4/libmp4.h
index 174c1fc..b184469 100644
--- a/modules/demux/mp4/libmp4.h
+++ b/modules/demux/mp4/libmp4.h
@@ -47,6 +47,7 @@
 #define ATOM_dcom VLC_FOURCC( 'd', 'c', 'o', 'm' )
 #define ATOM_cmvd VLC_FOURCC( 'c', 'm', 'v', 'd' )
 
+#define ATOM_styp VLC_FOURCC( 's', 't', 'y', 'p' )
 #define ATOM_moof VLC_FOURCC( 'm', 'o', 'o', 'f' )
 #define ATOM_mdat VLC_FOURCC( 'm', 'd', 'a', 't' )
 #define ATOM_skip VLC_FOURCC( 's', 'k', 'i', 'p' )



More information about the vlc-commits mailing list