[FFmpeg-devel] Correctly fill the SSRC field in RTP packets
Luca Barbato
lu_zero
Tue Mar 25 14:13:26 CET 2008
Luca Abeni wrote:
> Hi all,
>
> I've just realized that the RTP muxer currently fills the
> SSRC field in RTP packets with 0, generating multiple RTP
> streams with the same SSRC. Unless I misread RFC3550, this
> is not ok, since different streams in the same session
> should have different SSRCs.
Right
> The attached patch fills the SSRC field using the address
> of the AVFormatContext, so that different streams in the
> same session will have different SSRCs.
Would be better using the mersenne twister for the first and then
increment it. In feng we use a strong random for most of the random
filled fields to make even the most paranoid happy ^^;
lu
--
Luca Barbato
Gentoo Council Member
Gentoo/linux Gentoo/PPC
http://dev.gentoo.org/~lu_zero
More information about the ffmpeg-devel
mailing list