mirror of
https://github.com/samsonjs/media.git
synced 2026-04-10 12:05:47 +00:00
Fix review comment in CSD parsing of Mp4a-Latm
Change-Id: I70c412870952e18826f43d218b074b2829127e10
This commit is contained in:
parent
0ac84fe16f
commit
ce98d6da84
1 changed files with 2 additions and 1 deletions
|
|
@ -217,8 +217,9 @@ import com.google.common.collect.ImmutableMap;
|
|||
PARAMETER_MP4A_C_PRESENT).equals("0")) {
|
||||
isConfigPresent = false;
|
||||
}
|
||||
checkArgument(!isConfigPresent, "cpresent == 0 means we need to parse config");
|
||||
@Nullable String configInput = fmtpParameters.get(PARAMETER_MP4V_CONFIG);
|
||||
if (!isConfigPresent && configInput != null && configInput.length() % 2 == 0) {
|
||||
if (configInput != null && configInput.length() % 2 == 0) {
|
||||
Pair<Integer, Integer> configParameters = getSampleRateAndChannelCount(configInput);
|
||||
channelCount = configParameters.first;
|
||||
clockRate = configParameters.second;
|
||||
|
|
|
|||
Loading…
Reference in a new issue