[vlc-commits] demux: ts: fix SL header reading

Francois Cartegnie git at videolan.org
Tue Mar 31 21:22:39 CEST 2015


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Mar 27 01:38:22 2015 +0100| [3d660b873fae52c98c344770f3511dc3a9469b97] | committer: Francois Cartegnie

demux: ts: fix SL header reading

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

 modules/demux/mpeg4_iod.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/mpeg4_iod.c b/modules/demux/mpeg4_iod.c
index 5958ab4..f505b2a 100644
--- a/modules/demux/mpeg4_iod.c
+++ b/modules/demux/mpeg4_iod.c
@@ -131,7 +131,7 @@ static bool IOD_SLDesc_Read( vlc_object_t *p_object, unsigned i_data, const uint
         sl_descr->i_flags = IODGetBytes( &i_data, &p_data, 1 );
         sl_descr->i_timestamp_resolution = IODGetBytes( &i_data, &p_data, 4 );
         sl_descr->i_OCR_resolution = IODGetBytes( &i_data, &p_data, 4 );
-        sl_descr->i_timestamp_length = IODGetBytes( &i_data, &p_data, 4 );
+        sl_descr->i_timestamp_length = IODGetBytes( &i_data, &p_data, 1 );
         sl_descr->i_OCR_length = IODGetBytes( &i_data, &p_data, 1 );
         sl_descr->i_AU_length = IODGetBytes( &i_data, &p_data, 1 );
         sl_descr->i_instant_bitrate_length = IODGetBytes( &i_data, &p_data, 1 );



More information about the vlc-commits mailing list