summaryrefslogtreecommitdiff
path: root/libavutil/random_seed.c
Commit message (Collapse)AuthorAge
* random_seed: add selftestMichael Niedermayer2012-02-23
| | | | | Reviewed-by: Nicolas George <nicolas.george@normalesup.org> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Merge remote-tracking branch 'qatar/master'Michael Niedermayer2011-12-05
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: adpcmenc: cosmetics: pretty-printing ac3dec: cosmetics: pretty-printing yuv4mpeg: cosmetics: pretty-printing shorten: remove dead initialization roqvideodec: set AVFrame reference before reget_buffer. bmp: fix some 1bit samples. latmdec: add fate test for audio config change oma: PCM support oma: better format detection with small probe buffer oma: clearify ambiguous if condition wavpack: Properly clip samples during lossy decode Code clean-up for crc.c, lfg.c, log.c, random_see.d, rational.c and tree.c. Cleaned pixdesc.c file in libavutil zmbv.c: coding style clean-up. xan.c: coding style clean-up. mpegvideo.c: code cleanup - first 500 lines. Conflicts: Changelog libavcodec/adpcmenc.c libavcodec/bmp.c libavcodec/zmbv.c libavutil/log.c libavutil/pixdesc.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * Code clean-up for crc.c, lfg.c, log.c, random_see.d, rational.c and tree.c.Yordan Makariev2011-12-03
| | | | | | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2011-07-18
|\| | | | | | | | | | | | | | | | | | | | | | | * qatar/master: vf_libopencv: replace opencv/cxtypes.h #include by opencv/cxcore.h dsputil: remove disabled code tta: remove disabled code gxfenc: place variable declarations before statements x86: Use LOCAL_ALIGNED in mpegvideo_mmx_template random_seed: use proper #includes Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * random_seed: use proper #includesMans Rullgard2011-07-17
| | | | | | | | | | | | Use <> for system headers, add needed math.h, drop unnecessary avutil.h. Signed-off-by: Mans Rullgard <mans@mansr.com>
* | Merge remote branch 'qatar/master'Michael Niedermayer2011-04-21
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: Makefile: Include dependencies for test tools, too Remove a version check in av_log made unnecessary by the big bump. update last major version increase dates in APIchanges Reduce picture size for yadif. oggdec: use av_freep() instead of av_free() avio: Fix sanity checks in ffurl_read* libavformat: Free AVFormatContext->streams libavformat: Make protocols pass URLContext as log context where available asf: remove commented out code in asf_read_seek not pulled: libpostproc: Remove crufty code disabled by the big bump. Reflect 0.7_beta1 release in the Changelog not pulled: sws: remove disabled cruft. lavu: remove disabled ff_random_get_seed cruft. lavu: remove disabled sha1 cruft. Conflicts: Changelog libavutil/sha1.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * lavu: remove disabled ff_random_get_seed cruft.Anton Khirnov2011-04-19
| |
| * Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-19
|/ | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Fix infinite loop with clock() returning (clock_t)-1.Michael Niedermayer2010-07-08
| | | | Originally committed as revision 24116 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Change i to unsigned in get_generic_seed().Michael Niedermayer2010-07-08
| | | | | | | This is clearer than comparing against an unsigned number to force an unsigned comparison that we need. Originally committed as revision 24114 to svn://svn.ffmpeg.org/ffmpeg/trunk
* get_generic_seed() for the cases without /dev/random and AV_READ_TIMEMichael Niedermayer2010-07-07
| | | | Originally committed as revision 24102 to svn://svn.ffmpeg.org/ffmpeg/trunk
* random_seed: simplifyMåns Rullgård2010-07-01
| | | | Originally committed as revision 23932 to svn://svn.ffmpeg.org/ffmpeg/trunk
* ReindentMåns Rullgård2010-07-01
| | | | Originally committed as revision 23931 to svn://svn.ffmpeg.org/ffmpeg/trunk
* random_seed: allow to block on /dev/randomMåns Rullgård2010-07-01
| | | | | | | | | | If both /dev/random and /dev/urandom failed to return data, an uninitialised value might be returned. Since most systems have a non-blocking /dev/urandom or have /dev/random with similar properties, the chance of blocking is minimal, and the alternative of returning non-random data is worse. Originally committed as revision 23930 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make av_get_random_seed() non-blockingMåns Rullgård2010-06-30
| | | | | | | Attempt to read from /dev/urandom and /dev/random with O_NONBLOCK set. If neither succeeds, proceed with fallbacks. Originally committed as revision 23903 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make ff_random_get_seed public, rename to av_get_random_seed, export the headerMartin Storsjö2010-05-23
| | | | | | | 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
* indentMåns Rullgård2010-03-11
| | | | Originally committed as revision 22451 to svn://svn.ffmpeg.org/ffmpeg/trunk
* random_seed: try other alternatives if reading /dev/random failsMåns Rullgård2010-03-11
| | | | Originally committed as revision 22450 to svn://svn.ffmpeg.org/ffmpeg/trunk
* add ff_random_get_seed to be used in conjunction with random functionsBaptiste Coudurier2009-03-08
Originally committed as revision 17868 to svn://svn.ffmpeg.org/ffmpeg/trunk