Skip to content

Commit ce98d6d

Browse files
committed
Fix review comment in CSD parsing of Mp4a-Latm
Change-Id: I70c412870952e18826f43d218b074b2829127e10
1 parent 0ac84fe commit ce98d6d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libraries/exoplayer_rtsp/src/main/java/androidx/media3/exoplayer/rtsp/RtspMediaTrack.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,8 +217,9 @@ public int hashCode() {
217217
PARAMETER_MP4A_C_PRESENT).equals("0")) {
218218
isConfigPresent = false;
219219
}
220+
checkArgument(!isConfigPresent, "cpresent == 0 means we need to parse config");
220221
@Nullable String configInput = fmtpParameters.get(PARAMETER_MP4V_CONFIG);
221-
if (!isConfigPresent && configInput != null && configInput.length() % 2 == 0) {
222+
if (configInput != null && configInput.length() % 2 == 0) {
222223
Pair<Integer, Integer> configParameters = getSampleRateAndChannelCount(configInput);
223224
channelCount = configParameters.first;
224225
clockRate = configParameters.second;

0 commit comments

Comments
 (0)