changeset 1045:7f1b7f811f01 libavformat

fix constraint violation: libavformat is not allowed to modify state of caller, including rng state
author rfelker
date Thu, 30 Mar 2006 16:44:32 +0000
parents 3aeb079a7e74
children 92c01be95bbf
files rtp.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/rtp.c	Mon Mar 27 22:22:50 2006 +0000
+++ b/rtp.c	Thu Mar 30 16:44:32 2006 +0000
@@ -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);