demux/mp4: bug fix in trun atom parsing
authorF. Yhuel <fyhuel@viotech.net>
Thu, 24 Nov 2011 14:56:55 +0000 (15:56 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Fri, 25 Nov 2011 01:40:52 +0000 (02:40 +0100)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/demux/mp4/libmp4.c

index d26da3d..3e257df 100644 (file)
@@ -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 );