Skip to content
Snippets Groups Projects
Commit e469c589 authored by François Cartegnie's avatar François Cartegnie :fingers_crossed: Committed by Jean-Baptiste Kempf
Browse files

demux: adaptive: start with lowest non audio on NearOptimal Logic

parent 08cbeca2
No related branches found
Tags 0.2.83
1 merge request!370demux: adaptive: start with lowest non audio on NearOptimal Logic
Pipeline #116643 passed with stages
in 24 minutes and 55 seconds
......@@ -119,6 +119,13 @@ BaseRepresentation *NearOptimalAdaptationLogic::getNextRepresentation(BaseAdapta
if(prevRep == nullptr) /* Starting */
{
m = selector.select(adaptSet, bps);
if(m == lowest)
{
/* Handle HLS specific cases where the lowest is audio only. Try to pick first A+V */
BaseRepresentation *n = selector.higher(adaptSet, m);
if(m != n && m->getCodecs().size() == 1 && n->getCodecs().size() > 1)
m = n;
}
}
else
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment