From ce98d6da842bc5eb5ebad921a4648643fb814a25 Mon Sep 17 00:00:00 2001 From: Rakesh Kumar Date: Tue, 4 Oct 2022 17:45:59 +0530 Subject: [PATCH] Fix review comment in CSD parsing of Mp4a-Latm Change-Id: I70c412870952e18826f43d218b074b2829127e10 --- .../java/androidx/media3/exoplayer/rtsp/RtspMediaTrack.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/exoplayer_rtsp/src/main/java/androidx/media3/exoplayer/rtsp/RtspMediaTrack.java b/libraries/exoplayer_rtsp/src/main/java/androidx/media3/exoplayer/rtsp/RtspMediaTrack.java index 7146dc0033..a72a84540f 100644 --- a/libraries/exoplayer_rtsp/src/main/java/androidx/media3/exoplayer/rtsp/RtspMediaTrack.java +++ b/libraries/exoplayer_rtsp/src/main/java/androidx/media3/exoplayer/rtsp/RtspMediaTrack.java @@ -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 configParameters = getSampleRateAndChannelCount(configInput); channelCount = configParameters.first; clockRate = configParameters.second;