aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2010-05-23 08:53:40 +0000
committerMartin Storsjö <martin@martin.st>2010-05-23 08:53:40 +0000
commit576fb48e6dc8c75ece42fa7ede40f19de708b3f3 (patch)
treef24887f4646860a737908f5abbc504a04f671397 /libavformat
parente1745e2f6e839a91d5e9347b6dfe7685622b9fb4 (diff)
downloadffmpeg-576fb48e6dc8c75ece42fa7ede40f19de708b3f3.tar.gz
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. Originally committed as revision 23254 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/httpauth.c2
-rw-r--r--libavformat/mxfenc.c2
-rw-r--r--libavformat/rtpenc.c4
3 files changed, 4 insertions, 4 deletions
diff --git a/libavformat/httpauth.c b/libavformat/httpauth.c
index cef27569a8..abdee81dec 100644
--- a/libavformat/httpauth.c
+++ b/libavformat/httpauth.c
@@ -200,7 +200,7 @@ static char *make_digest_auth(HTTPAuthState *state, const char *username,
/* Generate a client nonce. */
for (i = 0; i < 2; i++)
- cnonce_buf[i] = ff_random_get_seed();
+ cnonce_buf[i] = av_get_random_seed();
ff_data_to_hex(cnonce, (const uint8_t*) cnonce_buf, sizeof(cnonce_buf), 1);
cnonce[2*sizeof(cnonce_buf)] = 0;
diff --git a/libavformat/mxfenc.c b/libavformat/mxfenc.c
index ab381189c9..6ca7ee8c08 100644
--- a/libavformat/mxfenc.c
+++ b/libavformat/mxfenc.c
@@ -1389,7 +1389,7 @@ static uint64_t mxf_parse_timestamp(time_t timestamp)
static void mxf_gen_umid(AVFormatContext *s)
{
MXFContext *mxf = s->priv_data;
- uint32_t seed = ff_random_get_seed();
+ uint32_t seed = av_get_random_seed();
uint64_t umid = seed + 0x5294713400000000LL;
AV_WB64(mxf->umid , umid);
diff --git a/libavformat/rtpenc.c b/libavformat/rtpenc.c
index 5df101eb04..3111c2b32e 100644
--- a/libavformat/rtpenc.c
+++ b/libavformat/rtpenc.c
@@ -80,10 +80,10 @@ static int rtp_write_header(AVFormatContext *s1)
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)