[vlc-devel] [PATCH] libmp4: fix 'mfhd' parsing
F. Yhuel
fyhuel at viotech.net
Sun Mar 18 18:22:12 CET 2012
From: "F. Yhuel" <fyhuel at viotech.net>
---
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 8cbfad1..00306aa 100644
--- a/modules/demux/mp4/libmp4.c
+++ b/modules/demux/mp4/libmp4.c
@@ -498,6 +498,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 f525d56..72eb7b3 100644
--- a/modules/demux/mp4/libmp4.h
+++ b/modules/demux/mp4/libmp4.h
@@ -861,9 +861,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;
--
1.7.9.1
More information about the vlc-devel
mailing list