Commit fb37572b by claincly Committed by Oliver Woodman

Remove the check for dynamic payload type.

Issue: google/ExoPlayer#9744

We do not rely on the payload type to determine the sample MIME type, we depend
on the SDP message, so it's worthless checking the payload type.

After removing the line, a server can use payload type 35 (an unassigned
payload type) for H264; while normally H264 requires payload type >= 96).

PiperOrigin-RevId: 413658076
parent 4dca984a
...@@ -125,8 +125,6 @@ import com.google.common.collect.ImmutableMap; ...@@ -125,8 +125,6 @@ import com.google.common.collect.ImmutableMap;
} }
checkArgument(clockRate > 0); checkArgument(clockRate > 0);
// Checks if payload type is "dynamic" as defined in RFC3551 Section 3.
checkArgument(rtpPayloadType >= 96);
return new RtpPayloadFormat(formatBuilder.build(), rtpPayloadType, clockRate, fmtpParameters); return new RtpPayloadFormat(formatBuilder.build(), rtpPayloadType, clockRate, fmtpParameters);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment