[vlc-commits] demux: libmp4: add and parse 3DDS uuid

Francois Cartegnie git at videolan.org
Thu Jul 27 00:03:44 CEST 2017


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Jul 26 23:53:39 2017 +0200| [9e8a1481e95d8165f0fd6538f9a12f393a5e8cc3] | committer: Francois Cartegnie

demux: libmp4: add and parse 3DDS uuid

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

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

diff --git a/modules/demux/mp4/libmp4.c b/modules/demux/mp4/libmp4.c
index 254ac79c57..ba9fe06fda 100644
--- a/modules/demux/mp4/libmp4.c
+++ b/modules/demux/mp4/libmp4.c
@@ -4174,6 +4174,8 @@ static int MP4_ReadBox_uuid( stream_t *p_stream, MP4_Box_t *p_box )
         return MP4_ReadBox_tfxd( p_stream, p_box );
     if( !CmpUUID( &p_box->i_uuid, &XML360BoxUUID ) )
         return MP4_ReadBox_XML360( p_stream, p_box );
+    if( !CmpUUID( &p_box->i_uuid, &PS3DDSBoxUUID ) && p_box->i_size == 28 )
+        return MP4_ReadBox_Binary( p_stream, p_box );
 
 #ifdef MP4_VERBOSE
     msg_Warn( p_stream, "Unknown uuid type box: "
diff --git a/modules/demux/mp4/libmp4.h b/modules/demux/mp4/libmp4.h
index 7d7285b4b2..56f71c0309 100644
--- a/modules/demux/mp4/libmp4.h
+++ b/modules/demux/mp4/libmp4.h
@@ -1896,6 +1896,11 @@ static const UUID_t XML360BoxUUID = {
                 { 0xff, 0xcc, 0x82, 0x63, 0xf8, 0x55, 0x4a, 0x93,
                   0x88, 0x14, 0x58, 0x7a, 0x02, 0x52, 0x1f, 0xdd } };
 
+/* PS3 3D by HMMP video encoder */
+static const UUID_t PS3DDSBoxUUID = {
+                { 0x33, 0x44, 0x44, 0x53, 0x21, 0xd2, 0x4f, 0xce,
+                  0xbb, 0x88, 0x69, 0x5c, 0xfa, 0xc9, 0xc7, 0x40 } };
+
 /*****************************************************************************
  * MP4_Seek : non seekable stream safe seek
  ****************************************************************************/



More information about the vlc-commits mailing list