We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e013356 commit a05eab7Copy full SHA for a05eab7
janus/src/rtp.h
@@ -25,8 +25,10 @@
25
#include "uslibs/types.h"
26
27
28
-// https://stackoverflow.com/questions/47635545/why-webrtc-chose-rtp-max-packet-size-to-1200-bytes
29
-#define US_RTP_TOTAL_SIZE 1200
+// Max RTP size for WebRTC is 1200 bytes:
+// - https://stackoverflow.com/questions/47635545/why-webrtc-chose-rtp-max-packet-size-to-1200-bytes
30
+// We take this and substract 50 bytes for possible RTP extensions, see sdp.c
31
+#define US_RTP_TOTAL_SIZE (1200 - 50)
32
#define US_RTP_HEADER_SIZE 12
33
#define US_RTP_PAYLOAD_SIZE (US_RTP_TOTAL_SIZE - US_RTP_HEADER_SIZE)
34
0 commit comments