[vlc-commits] demux: ts: fail early probing mpeg4 descriptor
Francois Cartegnie
git at videolan.org
Fri Jun 6 13:03:17 CEST 2014
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Jun 6 13:00:03 2014 +0200| [1ce453f08fc9a2875d271a945d9022922ea8c169] | committer: Francois Cartegnie
demux: ts: fail early probing mpeg4 descriptor
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1ce453f08fc9a2875d271a945d9022922ea8c169
---
modules/demux/ts.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/modules/demux/ts.c b/modules/demux/ts.c
index 582bb35..4c704a3 100644
--- a/modules/demux/ts.c
+++ b/modules/demux/ts.c
@@ -3279,10 +3279,12 @@ static void PMTSetupEsISO14496( demux_t *p_demux, ts_pid_t *pid,
for( int i = 0; i < 255; i++ )
{
iod_descriptor_t *iod = prg->iod;
-
- if( iod->es_descr[i].b_ok && iod->es_descr[i].i_es_id == i_es_id )
+ if( iod->es_descr[i].i_es_id == i_es_id )
{
- pid->es->p_mpeg4desc = &iod->es_descr[i];
+ if ( iod->es_descr[i].b_ok )
+ pid->es->p_mpeg4desc = &iod->es_descr[i];
+ else
+ msg_Dbg( p_demux, "MPEG-4 descriptor not yet available on es_id=%d", i_es_id );
break;
}
}
More information about the vlc-commits
mailing list