OSDN Git Service

Consistently use TEST as the preprocessor condition to enable test code.
authorDiego Biurrun <diego@biurrun.de>
Sun, 20 Jan 2008 23:53:51 +0000 (23:53 +0000)
committerDiego Biurrun <diego@biurrun.de>
Sun, 20 Jan 2008 23:53:51 +0000 (23:53 +0000)
Originally committed as revision 11581 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/cabac.c
libavcodec/h264.c
libavcodec/rangecoder.c
libavcodec/snow.c

index 1e0d9e5..e125338 100644 (file)
@@ -178,7 +178,7 @@ void ff_init_cabac_states(CABACContext *c){
     }
 }
 
-#if 0 //selftest
+#ifdef TEST
 #undef random
 #define SIZE 10240
 
@@ -262,4 +262,4 @@ STOP_TIMER("get_cabac_ueg")
     return 0;
 }
 
-#endif
+#endif /* TEST */
index 66efce0..ffc3493 100644 (file)
@@ -7820,7 +7820,7 @@ static inline void fill_mb_avail(H264Context *h){
 }
 #endif
 
-#if 0 //selftest
+#ifdef TEST
 #undef random
 #define COUNT 8000
 #define SIZE (COUNT*40)
@@ -7992,7 +7992,7 @@ int main(void){
 
     return 0;
 }
-#endif
+#endif /* TEST */
 
 
 static int decode_end(AVCodecContext *avctx)
index baf4c81..829d9ab 100644 (file)
@@ -109,7 +109,7 @@ int ff_rac_terminate(RangeCoder *c){
     return c->bytestream - c->bytestream_start;
 }
 
-#if 0 //selftest
+#ifdef TEST
 #define SIZE 10240
 int main(void){
     RangeCoder c;
@@ -148,4 +148,4 @@ STOP_TIMER("get_rac")
 
     return 0;
 }
-#endif
+#endif /* TEST */
index 1099e34..64504fe 100644 (file)
@@ -4775,7 +4775,7 @@ AVCodec snow_encoder = {
 #endif
 
 
-#if 0
+#ifdef TEST
 #undef malloc
 #undef free
 #undef printf
@@ -4924,4 +4924,4 @@ int64_t g=0;
 }
     return 0;
 }
-#endif /* 0 */
+#endif /* TEST */