Browse Source

Ignores RFCd RTCP packets: Goodbye/Application Specific

Prevent handling of two other RFCd packets used by browsers.
dtzxporter 3 years ago
parent
commit
a5770c085a
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/impl/peerconnection.cpp

+ 4 - 1
src/impl/peerconnection.cpp

@@ -506,8 +506,11 @@ void PeerConnection::forwardMedia(message_ptr message) {
 					ssrcs.insert(chunk->ssrc());
 				}
 			} else {
+				// PT=203 == Goodbye
+				// PT=204 == Application Specific
 				// PT=207 == Extended Report
-				if (header->payloadType() != 207) {
+				if (header->payloadType() != 203 && header->payloadType() != 204 &&
+				    header->payloadType() != 207) {
 					COUNTER_UNKNOWN_PACKET_TYPE++;
 				}
 			}