[vlc-commits] demux: mp4: enable 3DDS multiview

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


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Jul 26 23:51:05 2017 +0200| [eb46716d050c28af2132e4f59c34f0ca5b6ff127] | committer: Francois Cartegnie

demux: mp4: enable 3DDS multiview

Early PS3 sequential 3D

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

 modules/demux/mp4/essetup.c | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/modules/demux/mp4/essetup.c b/modules/demux/mp4/essetup.c
index 6f995568a7..94ae10c7e2 100644
--- a/modules/demux/mp4/essetup.c
+++ b/modules/demux/mp4/essetup.c
@@ -378,6 +378,22 @@ int SetupVideoES( demux_t *p_demux, mp4_track_t *p_track, MP4_Box_t *p_sample )
             break;
         }
     }
+    else
+    {
+        for( p_uuid = MP4_BoxGet( p_sample, "uuid" ); p_uuid;
+             p_uuid = p_uuid->p_next )
+        {
+            if( p_uuid->i_type == ATOM_uuid &&
+               !CmpUUID( &p_uuid->i_uuid, &PS3DDSBoxUUID ) &&
+                p_uuid->data.p_binary &&
+                p_uuid->data.p_binary->i_blob == 4 &&
+                !memcmp( p_uuid->data.p_binary->p_blob, "\x82\x81\x10\x02", 4 ) )
+            {
+                p_track->fmt.video.multiview_mode = MULTIVIEW_STEREO_FRAME;
+                break;
+            }
+        }
+    }
 
     const MP4_Box_t *p_prhd = MP4_BoxGet( p_sample, "sv3d/proj/prhd" );
     if (p_prhd && BOXDATA(p_prhd))



More information about the vlc-commits mailing list