Commit 0cabd387 authored by rfelker's avatar rfelker

fix constraint violation: libavformat is not allowed to modify state of caller, including rng state


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@5249 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 75c17db9
...@@ -532,9 +532,9 @@ static int rtp_write_header(AVFormatContext *s1) ...@@ -532,9 +532,9 @@ static int rtp_write_header(AVFormatContext *s1)
payload_type = RTP_PT_PRIVATE; /* private payload type */ payload_type = RTP_PT_PRIVATE; /* private payload type */
s->payload_type = 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->timestamp = s->base_timestamp;
s->ssrc = random(); s->ssrc = 0; /* FIXME: was random(), what should this be? */
s->first_packet = 1; s->first_packet = 1;
max_packet_size = url_fget_max_packet_size(&s1->pb); max_packet_size = url_fget_max_packet_size(&s1->pb);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment