aboutsummaryrefslogtreecommitdiff
path: root/libavformat/rtp.c
diff options
context:
space:
mode:
authorD Richard Felker III2006-03-30 16:44:32 +0000
committerD Richard Felker III2006-03-30 16:44:32 +0000
commitf880199375ee661c22128febd531a7faa122ff0f (patch)
tree418d3abb5f308cfd2256a7178bb5e8294a93200f /libavformat/rtp.c
parent5d6ed7c141e641f12cd754ca083a96c977add325 (diff)
fix constraint violation: libavformat is not allowed to modify state of caller, including rng state
Originally committed as revision 5249 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/rtp.c')
-rw-r--r--libavformat/rtp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/rtp.c b/libavformat/rtp.c
index eeb455faa7..2b560057bb 100644
--- a/libavformat/rtp.c
+++ b/libavformat/rtp.c
@@ -532,9 +532,9 @@ static int rtp_write_header(AVFormatContext *s1)
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);