Browse Source

Merge pull request #1369 from AltayAkkus/master

add zero byte msgs
Paul-Louis Ageneau 4 months ago
parent
commit
3e9bf68692
1 changed files with 0 additions and 5 deletions
  1. 0 5
      src/impl/dtlssrtptransport.cpp

+ 0 - 5
src/impl/dtlssrtptransport.cpp

@@ -97,11 +97,6 @@ bool DtlsSrtpTransport::sendMedia(message_ptr message) {
 	int size = int(message->size());
 	PLOG_VERBOSE << "Send size=" << size;
 
-	// The RTP header has a minimum size of 12 bytes
-	// An RTCP packet can have a minimum size of 8 bytes
-	if (size < 8)
-		throw std::runtime_error("RTP/RTCP packet too short");
-
 	// srtp_protect() and srtp_protect_rtcp() assume that they can write SRTP_MAX_TRAILER_LEN (for
 	// the authentication tag) into the location in memory immediately following the RTP packet.
 	// Copy instead of resizing so we don't interfere with media handlers keeping references