diff options
author | Panagiotis Issaris <takis.issaris@uhasselt.be> | 2007-07-19 08:47:07 +0000 |
---|---|---|
committer | Panagiotis Issaris <takis.issaris@uhasselt.be> | 2007-07-19 08:47:07 +0000 |
commit | d04d5bcd0ed647a0cc7b278e3a4560e7e783798d (patch) | |
tree | 1f8d5b1a551739f5774b97fbcf037f812a4d68f2 /libavcodec | |
parent | cc61f96f8ae15490593972efecef1f7a3fda7ca0 (diff) | |
download | ffmpeg-d04d5bcd0ed647a0cc7b278e3a4560e7e783798d.tar.gz |
Fix the self tests which are contained in some codecs and are using random().
Originally committed as revision 9755 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/ac3enc.c | 1 | ||||
-rw-r--r-- | libavcodec/cabac.c | 1 | ||||
-rw-r--r-- | libavcodec/h264.c | 1 | ||||
-rw-r--r-- | libavcodec/snow.c | 1 |
4 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/ac3enc.c b/libavcodec/ac3enc.c index 5aa415b6d6..84bb7b0290 100644 --- a/libavcodec/ac3enc.c +++ b/libavcodec/ac3enc.c @@ -1269,6 +1269,7 @@ static int AC3_encode_close(AVCodecContext *avctx) /*************************************************************************/ /* TEST */ +#undef random #define FN (N/4) void fft_test(void) diff --git a/libavcodec/cabac.c b/libavcodec/cabac.c index 2d51f6bcf0..7eb60b0ad2 100644 --- a/libavcodec/cabac.c +++ b/libavcodec/cabac.c @@ -179,6 +179,7 @@ void ff_init_cabac_states(CABACContext *c){ } #if 0 //selftest +#undef random #define SIZE 10240 #include "avcodec.h" diff --git a/libavcodec/h264.c b/libavcodec/h264.c index 515058116f..c51496ae5b 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -8101,6 +8101,7 @@ static inline void fill_mb_avail(H264Context *h){ #endif #if 0 //selftest +#undef random #define COUNT 8000 #define SIZE (COUNT*40) int main(){ diff --git a/libavcodec/snow.c b/libavcodec/snow.c index b62f49ac15..68d2566067 100644 --- a/libavcodec/snow.c +++ b/libavcodec/snow.c @@ -4552,6 +4552,7 @@ AVCodec snow_encoder = { #undef malloc #undef free #undef printf +#undef random int main(){ int width=256; |