Commit 43c91076 authored by François Cartegnie's avatar François Cartegnie 🤞

demux: adaptive: fix null deref on unexec'ed es creation

will happen with larger buffering
parent 2e8abf4e
......@@ -120,7 +120,7 @@ void FakeESOut::createOrRecycleRealEsID( FakeESOutID *es_id )
recycle_candidates.erase( it );
break;
}
else if( cand->getFmt()->i_cat == es_id->getFmt()->i_cat )
else if( cand->getFmt()->i_cat == es_id->getFmt()->i_cat && cand->realESID() )
{
/* We need to enforce same selection when not reused
Otherwise the es will select any other compatible track
......
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