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
This commit is contained in:
claincly 2021-12-02 14:14:51 +00:00 committed by Ian Baker
parent 58a8aceb97
commit fbbedf32f9

View File

@ -127,8 +127,6 @@ import com.google.common.collect.ImmutableMap;
}
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);
}