Commit 40afb6c8 authored by takis's avatar takis

Fix the self tests which are contained in some codecs and are using random().


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@9755 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 7d91948d
...@@ -1269,6 +1269,7 @@ static int AC3_encode_close(AVCodecContext *avctx) ...@@ -1269,6 +1269,7 @@ static int AC3_encode_close(AVCodecContext *avctx)
/*************************************************************************/ /*************************************************************************/
/* TEST */ /* TEST */
#undef random
#define FN (N/4) #define FN (N/4)
void fft_test(void) void fft_test(void)
......
...@@ -179,6 +179,7 @@ void ff_init_cabac_states(CABACContext *c){ ...@@ -179,6 +179,7 @@ void ff_init_cabac_states(CABACContext *c){
} }
#if 0 //selftest #if 0 //selftest
#undef random
#define SIZE 10240 #define SIZE 10240
#include "avcodec.h" #include "avcodec.h"
......
...@@ -8101,6 +8101,7 @@ static inline void fill_mb_avail(H264Context *h){ ...@@ -8101,6 +8101,7 @@ static inline void fill_mb_avail(H264Context *h){
#endif #endif
#if 0 //selftest #if 0 //selftest
#undef random
#define COUNT 8000 #define COUNT 8000
#define SIZE (COUNT*40) #define SIZE (COUNT*40)
int main(){ int main(){
......
...@@ -4552,6 +4552,7 @@ AVCodec snow_encoder = { ...@@ -4552,6 +4552,7 @@ AVCodec snow_encoder = {
#undef malloc #undef malloc
#undef free #undef free
#undef printf #undef printf
#undef random
int main(){ int main(){
int width=256; int width=256;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment