Mercurial > libavcodec.hg
changeset 6164:ecaf5226e9b0 libavcodec
Consistently use TEST as the preprocessor condition to enable test code.
author | diego |
---|---|
date | Sun, 20 Jan 2008 23:53:51 +0000 |
parents | e994af44e0bd |
children | e2a00da5866c |
files | cabac.c h264.c rangecoder.c snow.c |
diffstat | 4 files changed, 8 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/cabac.c Sun Jan 20 21:38:21 2008 +0000 +++ b/cabac.c Sun Jan 20 23:53:51 2008 +0000 @@ -178,7 +178,7 @@ } } -#if 0 //selftest +#ifdef TEST #undef random #define SIZE 10240 @@ -262,4 +262,4 @@ return 0; } -#endif +#endif /* TEST */
--- a/h264.c Sun Jan 20 21:38:21 2008 +0000 +++ b/h264.c Sun Jan 20 23:53:51 2008 +0000 @@ -7820,7 +7820,7 @@ } #endif -#if 0 //selftest +#ifdef TEST #undef random #define COUNT 8000 #define SIZE (COUNT*40) @@ -7992,7 +7992,7 @@ return 0; } -#endif +#endif /* TEST */ static int decode_end(AVCodecContext *avctx)
--- a/rangecoder.c Sun Jan 20 21:38:21 2008 +0000 +++ b/rangecoder.c Sun Jan 20 23:53:51 2008 +0000 @@ -109,7 +109,7 @@ return c->bytestream - c->bytestream_start; } -#if 0 //selftest +#ifdef TEST #define SIZE 10240 int main(void){ RangeCoder c; @@ -148,4 +148,4 @@ return 0; } -#endif +#endif /* TEST */