[Ffmpeg-cvslog] CVS: ffmpeg/libavformat rtp.c,1.24,1.25
Luca Barbato
lu_zero
Fri Mar 31 20:15:09 CEST 2006
Richard Felker CVS wrote:
> Update of /cvsroot/ffmpeg/ffmpeg/libavformat
> In directory mail:/var2/tmp/cvs-serv5251
>
> Modified Files:
> rtp.c
> Log Message:
> fix constraint violation: libavformat is not allowed to modify state of caller, including rng state
>
> Index: rtp.c
> ===================================================================
> RCS file: /cvsroot/ffmpeg/ffmpeg/libavformat/rtp.c,v
> retrieving revision 1.24
> retrieving revision 1.25
> diff -u -d -r1.24 -r1.25
> --- rtp.c 1 Mar 2006 22:45:27 -0000 1.24
> +++ rtp.c 30 Mar 2006 16:44:32 -0000 1.25
> @@ -532,9 +532,9 @@
> payload_type = RTP_PT_PRIVATE; /* private payload type */
> s->payload_type = payload_type;
>
> - s->base_timestamp = random();
> + s->base_timestamp = 0; /* FIXME: was random(), what should this be? */
random (check the rfc)
> s->timestamp = s->base_timestamp;
> - s->ssrc = random();
> + s->ssrc = 0; /* FIXME: was random(), what should this be? */
any value would fit, random warmly suggested
> s->first_packet = 1;
>
> max_packet_size = url_fget_max_packet_size(&s1->pb);
>
lu
--
Luca Barbato
Gentoo/linux Gentoo/PPC
http://dev.gentoo.org/~lu_zero
More information about the ffmpeg-cvslog
mailing list