Browse Source

Fix additional typos made by the previous typos

sam 4 years ago
parent
commit
b0e1a7989d
1 changed files with 4 additions and 1 deletions
  1. 4 1
      include/rtc/rtp.hpp

+ 4 - 1
include/rtc/rtp.hpp

@@ -696,13 +696,16 @@ public:
 
 
 	[[nodiscard]] RTP &getHeader() { return header; }
 	[[nodiscard]] RTP &getHeader() { return header; }
 
 
+	/*
+	 * Returns the new size of the packet
+	 */
 	size_t normalizePacket(size_t totalSize, SSRC originalSSRC, uint8_t originalPayloadType) {
 	size_t normalizePacket(size_t totalSize, SSRC originalSSRC, uint8_t originalPayloadType) {
 		header.setSeqNumber(getOriginalSeqNo());
 		header.setSeqNumber(getOriginalSeqNo());
 		header.setSsrc(originalSSRC);
 		header.setSsrc(originalSSRC);
 		header.setPayloadType(originalPayloadType);
 		header.setPayloadType(originalPayloadType);
 		// TODO, the -12 is the size of the header (which is variable!)
 		// TODO, the -12 is the size of the header (which is variable!)
 		memmove(header.getBody(), getBody(), totalSize - getSize());
 		memmove(header.getBody(), getBody(), totalSize - getSize());
-		return totalSize - getSize();
+		return totalSize - 2;
 	}
 	}
 };
 };