Hi,

I've been using the attached patch in combination with VLC to support SRTP streams. The patch simply changes the AuxHandlerFunction to pass the packetSize by reference so it can be changed. The actual packetSize for SRTP will be less than the original packetSize after decryption and removal of some encryption header information.

It would be great to get this change (or something else that I could use to accomplish the same thing) into the main line of the live555 library-- I don't want to submit my SRTP patches to VLC until the changes necessary are already in live555.

I do realize this changes the API of live555, so make break existing applications. Any recommendations on how to support changing packetSize without breaking the API would be welcome as well.

Thanks,
Keary
diff -urN live/liveMedia/include/RTPInterface.hh live-patched/liveMedia/include/RTPInterface.hh
--- live/liveMedia/include/RTPInterface.hh	2012-04-21 02:56:47.000000000 -0400
+++ live-patched/liveMedia/include/RTPInterface.hh	2012-04-21 13:13:56.229949500 -0400
@@ -33,7 +33,7 @@
 // Typedef for an optional auxilliary handler function, to be called
 // when each new packet is read:
 typedef void AuxHandlerFunc(void* clientData, unsigned char* packet,
-			    unsigned packetSize);
+			    unsigned &packetSize);
 
 typedef void ServerRequestAlternativeByteHandler(void* instance, u_int8_t requestByte);
 // A hack that allows a handler for RTP/RTCP packets received over TCP to process RTSP commands that may also appear within
_______________________________________________
live-devel mailing list
live-devel@lists.live555.com
http://lists.live555.com/mailman/listinfo/live-devel

Reply via email to