Commit d6a2b97f authored by Francois Cartegnie's avatar Francois Cartegnie

demux: hls: try not to probe chunk for ts

parent 26146547
......@@ -109,6 +109,7 @@ void Parser::parseRepresentation(BaseAdaptationSet *adaptSet, const AttributesTa
{
const Attribute *uriAttr = streaminftag->getAttributeByName("URI");
const Attribute *bwAttr = streaminftag->getAttributeByName("BANDWIDTH");
const Attribute *codecsAttr = streaminftag->getAttributeByName("CODECS");
Representation *rep = new (std::nothrow) Representation(adaptSet);
if(rep)
......@@ -123,6 +124,10 @@ void Parser::parseRepresentation(BaseAdaptationSet *adaptSet, const AttributesTa
if(bwAttr)
rep->setBandwidth(bwAttr->decimal());
/* if more than 1 codec, don't probe, can't be packed audio */
if(codecsAttr && codecsAttr->quotedString().find(',') != std::string::npos)
rep->setMimeType("video/mp2t");
parseSegments(rep, tagslist);
adaptSet->addRepresentation(rep);
......
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