diff options
author | Diego Biurrun <diego@biurrun.de> | 2008-01-23 21:27:07 +0000 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2008-01-23 21:27:07 +0000 |
commit | 6bf398a03007a683740041cd9a0c1c8ac0a19563 (patch) | |
tree | 3ce82c19bc8909d687d716e082ef01c6b9588b01 | |
parent | 51198a8737d5088e2fa972ba5251fa4a3c06bbaf (diff) | |
download | ffmpeg-6bf398a03007a683740041cd9a0c1c8ac0a19563.tar.gz |
Add #undef printf and disable non-functional code to make test program compile.
Originally committed as revision 11604 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/h264.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c index ffc34933d0..29909e9ae7 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -7821,6 +7821,7 @@ static inline void fill_mb_avail(H264Context *h){ #endif #ifdef TEST +#undef printf #undef random #define COUNT 8000 #define SIZE (COUNT*40) @@ -7884,6 +7885,7 @@ int main(void){ STOP_TIMER("get_se_golomb"); } +#if 0 printf("testing 4x4 (I)DCT\n"); DCTELEM block[16]; @@ -7923,14 +7925,12 @@ int main(void){ } } printf("error=%f max_error=%d\n", ((float)error)/COUNT/16, (int)max_error ); -#if 0 printf("testing quantizer\n"); for(qp=0; qp<52; qp++){ for(i=0; i<16; i++) src1_block[i]= src2_block[i]= random()%255; } -#endif printf("Testing NAL layer\n"); uint8_t bitstream[COUNT]; @@ -7986,6 +7986,7 @@ int main(void){ return -1; } } +#endif printf("Testing RBSP\n"); |