Commit c36c471c authored by diego's avatar diego

Consistently use TEST as the preprocessor condition to enable test code.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@11581 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 63128197
...@@ -178,7 +178,7 @@ void ff_init_cabac_states(CABACContext *c){ ...@@ -178,7 +178,7 @@ void ff_init_cabac_states(CABACContext *c){
} }
} }
#if 0 //selftest #ifdef TEST
#undef random #undef random
#define SIZE 10240 #define SIZE 10240
...@@ -262,4 +262,4 @@ STOP_TIMER("get_cabac_ueg") ...@@ -262,4 +262,4 @@ STOP_TIMER("get_cabac_ueg")
return 0; return 0;
} }
#endif #endif /* TEST */
...@@ -7820,7 +7820,7 @@ static inline void fill_mb_avail(H264Context *h){ ...@@ -7820,7 +7820,7 @@ static inline void fill_mb_avail(H264Context *h){
} }
#endif #endif
#if 0 //selftest #ifdef TEST
#undef random #undef random
#define COUNT 8000 #define COUNT 8000
#define SIZE (COUNT*40) #define SIZE (COUNT*40)
...@@ -7992,7 +7992,7 @@ int main(void){ ...@@ -7992,7 +7992,7 @@ int main(void){
return 0; return 0;
} }
#endif #endif /* TEST */
static int decode_end(AVCodecContext *avctx) static int decode_end(AVCodecContext *avctx)
......
...@@ -109,7 +109,7 @@ int ff_rac_terminate(RangeCoder *c){ ...@@ -109,7 +109,7 @@ int ff_rac_terminate(RangeCoder *c){
return c->bytestream - c->bytestream_start; return c->bytestream - c->bytestream_start;
} }
#if 0 //selftest #ifdef TEST
#define SIZE 10240 #define SIZE 10240
int main(void){ int main(void){
RangeCoder c; RangeCoder c;
...@@ -148,4 +148,4 @@ STOP_TIMER("get_rac") ...@@ -148,4 +148,4 @@ STOP_TIMER("get_rac")
return 0; return 0;
} }
#endif #endif /* TEST */
...@@ -4775,7 +4775,7 @@ AVCodec snow_encoder = { ...@@ -4775,7 +4775,7 @@ AVCodec snow_encoder = {
#endif #endif
#if 0 #ifdef TEST
#undef malloc #undef malloc
#undef free #undef free
#undef printf #undef printf
...@@ -4924,4 +4924,4 @@ int64_t g=0; ...@@ -4924,4 +4924,4 @@ int64_t g=0;
} }
return 0; return 0;
} }
#endif /* 0 */ #endif /* TEST */
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