Commit 1ce453f0 authored by François Cartegnie's avatar François Cartegnie 🤞

demux: ts: fail early probing mpeg4 descriptor

parent f2203dd5
......@@ -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;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment