changeset 5380:389366aa3458 libavcodec

Fix the self tests which are contained in some codecs and are using random().
author takis
date Thu, 19 Jul 2007 08:47:07 +0000
parents e9f8a337c5ce
children 4cac2cfe2745
files ac3enc.c cabac.c h264.c snow.c
diffstat 4 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ac3enc.c	Thu Jul 19 08:46:28 2007 +0000
+++ b/ac3enc.c	Thu Jul 19 08:47:07 2007 +0000
@@ -1269,6 +1269,7 @@
 /*************************************************************************/
 /* TEST */
 
+#undef random
 #define FN (N/4)
 
 void fft_test(void)
--- a/cabac.c	Thu Jul 19 08:46:28 2007 +0000
+++ b/cabac.c	Thu Jul 19 08:47:07 2007 +0000
@@ -179,6 +179,7 @@
 }
 
 #if 0 //selftest
+#undef random
 #define SIZE 10240
 
 #include "avcodec.h"
--- a/h264.c	Thu Jul 19 08:46:28 2007 +0000
+++ b/h264.c	Thu Jul 19 08:47:07 2007 +0000
@@ -8101,6 +8101,7 @@
 #endif
 
 #if 0 //selftest
+#undef random
 #define COUNT 8000
 #define SIZE (COUNT*40)
 int main(){
--- a/snow.c	Thu Jul 19 08:46:28 2007 +0000
+++ b/snow.c	Thu Jul 19 08:47:07 2007 +0000
@@ -4552,6 +4552,7 @@
 #undef malloc
 #undef free
 #undef printf
+#undef random
 
 int main(){
     int width=256;