[vlc-commits] demux: mp4: add support for computer graphics meta atom

Francois Cartegnie git at videolan.org
Tue Jun 10 20:37:16 CEST 2014


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Jun 10 20:09:54 2014 +0200| [9acdb09e04c6e9762a6d2503892589f75364d3e5] | committer: Francois Cartegnie

demux: mp4: add support for computer graphics meta atom

see bartjones.mov
http://streams.videolan.org/samples/mov/unrecognized/

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

 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 a1aa2fd..f13c3bc 100644
--- a/modules/demux/mp4/libmp4.c
+++ b/modules/demux/mp4/libmp4.c
@@ -3338,6 +3338,7 @@ static const struct
     { ATOM_skip,    MP4_ReadBoxSkip,          MP4_FreeBox_Common },
     { ATOM_free,    MP4_ReadBoxSkip,          MP4_FreeBox_Common },
     { ATOM_wide,    MP4_ReadBoxSkip,          MP4_FreeBox_Common },
+    { ATOM_binm,    MP4_ReadBoxSkip,          MP4_FreeBox_Common },
 
     /* Subtitles */
     { ATOM_tx3g,    MP4_ReadBox_sample_tx3g,      MP4_FreeBox_Common },
diff --git a/modules/demux/mp4/libmp4.h b/modules/demux/mp4/libmp4.h
index 97fe314..9c8212a 100644
--- a/modules/demux/mp4/libmp4.h
+++ b/modules/demux/mp4/libmp4.h
@@ -43,6 +43,7 @@
 #define ATOM_free VLC_FOURCC( 'f', 'r', 'e', 'e' )
 #define ATOM_udta VLC_FOURCC( 'u', 'd', 't', 'a' )
 #define ATOM_wide VLC_FOURCC( 'w', 'i', 'd', 'e' )
+#define ATOM_binm VLC_FOURCC( 0x82, 0x82, 0x7f, 0x7d ) /* binary Computer Graphics Metafile */
 
 #define ATOM_data VLC_FOURCC( 'd', 'a', 't', 'a' )
 



More information about the vlc-commits mailing list