[vlc-commits] libmp4: fix 'mfhd' parsing

F. Yhuel git at videolan.org
Mon Mar 19 15:36:34 CET 2012


vlc | branch: master | F. Yhuel <fyhuel at viotech.net> | Sun Mar 18 18:22:12 2012 +0100| [0b1b7516b965fa87c295eb0e7b9aa249f917e4e7] | committer: Jean-Baptiste Kempf

libmp4: fix 'mfhd' parsing

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

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

diff --git a/modules/demux/mp4/libmp4.c b/modules/demux/mp4/libmp4.c
index 5696176..13057ca 100644
--- a/modules/demux/mp4/libmp4.c
+++ b/modules/demux/mp4/libmp4.c
@@ -490,6 +490,8 @@ static int MP4_ReadBox_mfhd(  stream_t *p_stream, MP4_Box_t *p_box )
 {
     MP4_READBOX_ENTER( MP4_Box_data_mfhd_t );
 
+    MP4_GETVERSIONFLAGS( p_box->data.p_mvhd );
+
     MP4_GET4BYTES( p_box->data.p_mfhd->i_sequence_number );
 
 #ifdef MP4_VERBOSE
diff --git a/modules/demux/mp4/libmp4.h b/modules/demux/mp4/libmp4.h
index 5b6b106..d548f9e 100644
--- a/modules/demux/mp4/libmp4.h
+++ b/modules/demux/mp4/libmp4.h
@@ -832,9 +832,10 @@ typedef struct
 
 typedef struct MP4_Box_data_mfhd_s
 {
-    uint32_t i_sequence_number;
+    uint8_t  i_version;
+    uint32_t i_flags;
 
-    uint8_t *p_vendor_extension;
+    uint32_t i_sequence_number;
 
 } MP4_Box_data_mfhd_t;
 



More information about the vlc-commits mailing list