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

F. Yhuel git at videolan.org
Fri Nov 25 02:41:03 CET 2011


vlc | branch: master | F. Yhuel <fyhuel at viotech.net> | Thu Nov 24 15:56:55 2011 +0100| [ca15b15bc6b3e97edc31f8fd95d2c0fb140a6ab1] | committer: Jean-Baptiste Kempf

demux/mp4: bug fix in trun atom parsing

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

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

 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 d26da3d..3e257df 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 );
 



More information about the vlc-commits mailing list