[Ffmpeg-cvslog] CVS: ffmpeg/libavformat rtp.c,1.24,1.25

Richard Felker CVS rfelker
Thu Mar 30 18:44:35 CEST 2006


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? */
     s->timestamp = s->base_timestamp;
-    s->ssrc = random();
+    s->ssrc = 0; /* FIXME: was random(), what should this be? */
     s->first_packet = 1;
 
     max_packet_size = url_fget_max_packet_size(&s1->pb);





More information about the ffmpeg-cvslog mailing list