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

demux: smooth: fix MaxWidth/Height

parent 2ce0913a
......@@ -149,10 +149,14 @@ static void ParseQualityLevel(BaseAdaptationSet *adaptSet, Node *qualNode, const
if(qualNode->hasAttribute("Bitrate"))
rep->setBandwidth(Integer<uint64_t>(qualNode->getAttributeValue("Bitrate")));
if(qualNode->hasAttribute("Width"))
if(qualNode->hasAttribute("MaxWidth"))
rep->setWidth(Integer<uint64_t>(qualNode->getAttributeValue("MaxWidth")));
else if(qualNode->hasAttribute("Width"))
rep->setWidth(Integer<uint64_t>(qualNode->getAttributeValue("Width")));
if(qualNode->hasAttribute("Height"))
if(qualNode->hasAttribute("MaxHeight"))
rep->setHeight(Integer<uint64_t>(qualNode->getAttributeValue("MaxHeight")));
else if(qualNode->hasAttribute("Height"))
rep->setHeight(Integer<uint64_t>(qualNode->getAttributeValue("Height")));
ForgedInitSegment *initSegment = new (std::nothrow)
......
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