Originally committed as revision 11581 to svn://svn.ffmpeg.org/ffmpeg/trunk
| ... | ... |
@@ -178,7 +178,7 @@ void ff_init_cabac_states(CABACContext *c){
|
| 178 | 178 |
} |
| 179 | 179 |
} |
| 180 | 180 |
|
| 181 |
-#if 0 //selftest |
|
| 181 |
+#ifdef TEST |
|
| 182 | 182 |
#undef random |
| 183 | 183 |
#define SIZE 10240 |
| 184 | 184 |
|
| ... | ... |
@@ -262,4 +262,4 @@ STOP_TIMER("get_cabac_ueg")
|
| 262 | 262 |
return 0; |
| 263 | 263 |
} |
| 264 | 264 |
|
| 265 |
-#endif |
|
| 265 |
+#endif /* TEST */ |
| ... | ... |
@@ -7820,7 +7820,7 @@ static inline void fill_mb_avail(H264Context *h){
|
| 7820 | 7820 |
} |
| 7821 | 7821 |
#endif |
| 7822 | 7822 |
|
| 7823 |
-#if 0 //selftest |
|
| 7823 |
+#ifdef TEST |
|
| 7824 | 7824 |
#undef random |
| 7825 | 7825 |
#define COUNT 8000 |
| 7826 | 7826 |
#define SIZE (COUNT*40) |
| ... | ... |
@@ -7992,7 +7992,7 @@ int main(void){
|
| 7992 | 7992 |
|
| 7993 | 7993 |
return 0; |
| 7994 | 7994 |
} |
| 7995 |
-#endif |
|
| 7995 |
+#endif /* TEST */ |
|
| 7996 | 7996 |
|
| 7997 | 7997 |
|
| 7998 | 7998 |
static int decode_end(AVCodecContext *avctx) |
| ... | ... |
@@ -109,7 +109,7 @@ int ff_rac_terminate(RangeCoder *c){
|
| 109 | 109 |
return c->bytestream - c->bytestream_start; |
| 110 | 110 |
} |
| 111 | 111 |
|
| 112 |
-#if 0 //selftest |
|
| 112 |
+#ifdef TEST |
|
| 113 | 113 |
#define SIZE 10240 |
| 114 | 114 |
int main(void){
|
| 115 | 115 |
RangeCoder c; |
| ... | ... |
@@ -148,4 +148,4 @@ STOP_TIMER("get_rac")
|
| 148 | 148 |
|
| 149 | 149 |
return 0; |
| 150 | 150 |
} |
| 151 |
-#endif |
|
| 151 |
+#endif /* TEST */ |
| ... | ... |
@@ -4775,7 +4775,7 @@ AVCodec snow_encoder = {
|
| 4775 | 4775 |
#endif |
| 4776 | 4776 |
|
| 4777 | 4777 |
|
| 4778 |
-#if 0 |
|
| 4778 |
+#ifdef TEST |
|
| 4779 | 4779 |
#undef malloc |
| 4780 | 4780 |
#undef free |
| 4781 | 4781 |
#undef printf |
| ... | ... |
@@ -4924,4 +4924,4 @@ int64_t g=0; |
| 4924 | 4924 |
} |
| 4925 | 4925 |
return 0; |
| 4926 | 4926 |
} |
| 4927 |
-#endif /* 0 */ |
|
| 4927 |
+#endif /* TEST */ |