Commit ff6455aa by Miquel Beltran

Parse audioChannels only when on mpeg-dash

Only parse the @value as Int when the schemeIdUri is urn:mpeg:dash:23003:3:audio_channel_configuration:2011
parent d7697176
......@@ -590,7 +590,10 @@ public class MediaPresentationDescriptionParser extends DefaultHandler
protected int parseAudioChannelConfiguration(XmlPullParser xpp)
throws XmlPullParserException, IOException {
int audioChannels = parseInt(xpp, "value");
int audioChannels = -1;
String schemeIdUri = parseString(xpp, "schemeIdUri", "");
if (schemeIdUri.equals("urn:mpeg:dash:23003:3:audio_channel_configuration:2011"))
audioChannels = parseInt(xpp, "value");
do {
xpp.next();
} while (!ParserUtil.isEndTag(xpp, "AudioChannelConfiguration"));
......
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 sign in to comment