Explorar o código

add zero byte msgs

Altay Akkus hai 8 meses
pai
achega
93e449160f
Modificáronse 1 ficheiros con 0 adicións e 5 borrados
  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