Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
0921efab
authored
Aug 03, 2021
by
Colin Barr
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Switch to an explicit limit of 0 for splitting on RTSP fmtp parameters
parent
6f67cb83
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/MediaDescription.java
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/MediaDescription.java
View file @
0921efab
...
@@ -314,8 +314,8 @@ import java.util.HashMap;
...
@@ -314,8 +314,8 @@ import java.util.HashMap;
// Format of the parameter: RFC3640 Section 4.4.1:
// Format of the parameter: RFC3640 Section 4.4.1:
// <parameter name>=<value>[; <parameter name>=<value>].
// <parameter name>=<value>[; <parameter name>=<value>].
// Split with
im
plicit limit of 0 to handle an optional trailing semicolon.
// Split with
an ex
plicit limit of 0 to handle an optional trailing semicolon.
String
[]
parameters
=
fmtpComponents
[
1
].
split
(
";\\s?"
);
String
[]
parameters
=
fmtpComponents
[
1
].
split
(
";\\s?"
,
/* limit= */
0
);
ImmutableMap
.
Builder
<
String
,
String
>
formatParametersBuilder
=
new
ImmutableMap
.
Builder
<>();
ImmutableMap
.
Builder
<
String
,
String
>
formatParametersBuilder
=
new
ImmutableMap
.
Builder
<>();
for
(
String
parameter
:
parameters
)
{
for
(
String
parameter
:
parameters
)
{
// The parameter values can bear equal signs, so splitAtFirst must be used.
// The parameter values can bear equal signs, so splitAtFirst must be used.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment