diff rtpenc.c @ 6036:201152a121b5 libavformat

Make ff_random_get_seed public, rename to av_get_random_seed, export the header Keep an old ff_ named function for binary compatibility until the next major bump.
author mstorsjo
date Sun, 23 May 2010 08:53:40 +0000
parents 536e5527c1e0
children 6c0e0ad77315
line wrap: on
line diff
--- a/rtpenc.c	Sat May 22 21:52:06 2010 +0000
+++ b/rtpenc.c	Sun May 23 08:53:40 2010 +0000
@@ -80,10 +80,10 @@
     if (s->payload_type < 0)
         s->payload_type = RTP_PT_PRIVATE + (st->codec->codec_type == AVMEDIA_TYPE_AUDIO);
 
-    s->base_timestamp = ff_random_get_seed();
+    s->base_timestamp = av_get_random_seed();
     s->timestamp = s->base_timestamp;
     s->cur_timestamp = 0;
-    s->ssrc = ff_random_get_seed();
+    s->ssrc = av_get_random_seed();
     s->first_packet = 1;
     s->first_rtcp_ntp_time = ff_ntp_time();
     if (s1->start_time_realtime)