STUN: tell RTP from RTCP while in monitoring state (#2027)

This commit is contained in:
Ivan Nardi 2023-06-27 10:33:48 +02:00 committed by GitHub
parent 2c7fb91794
commit 86e89b4e23
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 73 additions and 24 deletions

View file

@ -31,12 +31,6 @@
#define RTP_MIN_HEADER 12
#define RTCP_MIN_HEADER 8
enum {
NO_RTP_RTCP = 0,
IS_RTP = 1,
IS_RTCP = 2,
};
/* https://www.iana.org/assignments/rtp-parameters/rtp-parameters.xhtml */
int is_valid_rtp_payload_type(uint8_t type)
{