[vlc-devel] [PATCH] demux/mp4: bug fix in trun atom parsing

F. Yhuel fyhuel at viotech.net
Thu Nov 24 15:56:55 CET 2011


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

diff --git a/modules/demux/mp4/libmp4.c b/modules/demux/mp4/libmp4.c
index 7db18a6..8551711 100644
--- a/modules/demux/mp4/libmp4.c
+++ b/modules/demux/mp4/libmp4.c
@@ -550,7 +550,7 @@ static int MP4_ReadBox_trun(  stream_t *p_stream, MP4_Box_t *p_box )
     MP4_GET4BYTES( p_box->data.p_trun->i_sample_count );
 
     if( p_box->data.p_trun->i_flags & MP4_TRUN_DATA_OFFSET )
-        MP4_GET8BYTES( p_box->data.p_trun->i_data_offset );
+        MP4_GET4BYTES( p_box->data.p_trun->i_data_offset );
     if( p_box->data.p_trun->i_flags & MP4_TRUN_FIRST_FLAGS )
         MP4_GET4BYTES( p_box->data.p_trun->i_first_sample_flags );
 
-- 
1.7.4.1




More information about the vlc-devel mailing list