Fix review comment in CSD parsing of Mp4a-Latm

Change-Id: I70c412870952e18826f43d218b074b2829127e10
This commit is contained in:
Rakesh Kumar 2022-10-04 17:45:59 +05:30
parent 0ac84fe16f
commit ce98d6da84

View File

@ -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;