tweak: speedup SRTP transport

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have not looked into the code in detail. However, the SRTP protect
usually appends some data to the exisiting buffer: the authentication
code. Thus it is usually necessary to copy the incoming data into
a bigger buffer to have room to add the authentication code.

Werner

Am 14.05.2014 16:35, schrieb Eeri Kask:
> Hello,
> 
> it looks like SRTP-transport (pjmedia/src/pjmedia/transport_srtp.c)
> copies the whole outgoing communication (video+audio) in RAM from
> location A to B without any easily apparent purpose; e.g. for video this
> is cir 32 Kbyte/sec traffic if ffmpeg-encoder bitrate is set to 256Kbit.
>  Is it feasible to avoid this overhead?
> 
> (In contrast, incoming communication is not copied, "srtp_unprotect()"
> operates directly on packet-buffer 'pkt'.)
> 
>     Eeri Kask
> 
> 
> 
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
> 
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
> 

-- 
Werner Dittmann
email: Werner.Dittmann at t-online.de
cell:  +49 173 44 37 659
PGP key: 82EF5E8B



[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux