[vlc-commits] demux: ts: ensure iod is present when looking for SLDesc

Francois Cartegnie git at videolan.org
Wed Mar 25 23:08:54 CET 2015


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Mar 25 22:38:24 2015 +0100| [30b73b74d0801108454606ddec3a1fa4cd429bd8] | committer: Francois Cartegnie

demux: ts: ensure iod is present when looking for SLDesc

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

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

diff --git a/modules/demux/ts.c b/modules/demux/ts.c
index 7631771..d94ecc1 100644
--- a/modules/demux/ts.c
+++ b/modules/demux/ts.c
@@ -4238,7 +4238,7 @@ static void PMTSetupEsISO14496( demux_t *p_demux, ts_pes_es_t *p_es,
     /* MPEG-4 stream: search FMC_DESCRIPTOR (SL Packetized stream) */
     dvbpsi_descriptor_t *p_dr = PMTEsFindDescriptor( p_dvbpsies, 0x1f );
 
-    if( p_dr && p_dr->i_length == 2 )
+    if( p_dr && p_dr->i_length == 2 && p_pmt->iod )
     {
         const int i_es_id = ( p_dr->p_data[0] << 8 ) | p_dr->p_data[1];
 



More information about the vlc-commits mailing list