[FFmpeg-devel] [PATCH] Initialize ssrc properly in the RTP muxer

Michael Niedermayer michaelni
Sun Mar 28 01:30:34 CET 2010


On Sun, Mar 28, 2010 at 01:23:48AM +0200, Martin Storsj? wrote:
> On Sun, 28 Mar 2010, Luca Abeni wrote:
> 
> > Hi Martin,
> > 
> > On Sat, 2010-03-27 at 20:43 +0200, Martin Storsj? wrote:
> > > When transmitting multiple RTP streams, their SSRC values should be 
> > > unique. Currently, the RTP muxer has this hardcoded to 0. The attached 
> > > patch replaces this (and also sets base_timestamp) using 
> > > ff_get_random_seed().
> > 
> > Both ssrc and the initial timestamp used to be set with random(), but
> > this has been changed because of security issues. If security people
> > agree that ff_random_get_seed() can be used here, then I am of course ok
> > with this patch.
> 
> Ok - if ff_random_get_seed() isn't allowed, av_gettime() or whatever is ok 
> for me, too, as long as multiple streams don't have the same SSRC...

leaking the system time might not be ideal

ff_random_get_seed() should be ok though

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Frequently ignored awnser#1 FFmpeg bugs should be sent to our bugtracker. User
questions about the command line tools should be sent to the ffmpeg-user ML.
And questions about how to use libav* should be sent to the libav-user ML.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100328/e5a91cac/attachment.pgp>



More information about the ffmpeg-devel mailing list