Mercurial > libavformat.hg
changeset 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 | 746b2040c34e |
children | ea60b0454e78 |
files | httpauth.c mxfenc.c rtpenc.c |
diffstat | 3 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/httpauth.c Sat May 22 21:52:06 2010 +0000 +++ b/httpauth.c Sun May 23 08:53:40 2010 +0000 @@ -200,7 +200,7 @@ /* 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;
--- a/mxfenc.c Sat May 22 21:52:06 2010 +0000 +++ b/mxfenc.c Sun May 23 08:53:40 2010 +0000 @@ -1389,7 +1389,7 @@ 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);
--- 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)