Commit 0921efab by Colin Barr

Switch to an explicit limit of 0 for splitting on RTSP fmtp parameters

parent 6f67cb83
......@@ -314,8 +314,8 @@ import java.util.HashMap;
// Format of the parameter: RFC3640 Section 4.4.1:
// <parameter name>=<value>[; <parameter name>=<value>].
// Split with implicit limit of 0 to handle an optional trailing semicolon.
String[] parameters = fmtpComponents[1].split(";\\s?");
// Split with an explicit limit of 0 to handle an optional trailing semicolon.
String[] parameters = fmtpComponents[1].split(";\\s?", /* limit= */ 0);
ImmutableMap.Builder<String, String> formatParametersBuilder = new ImmutableMap.Builder<>();
for (String parameter : parameters) {
// The parameter values can bear equal signs, so splitAtFirst must be used.
......
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