summaryrefslogtreecommitdiff
path: root/libavcodec/rangecoder.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2012-10-05 18:53:12 +0200
committerDiego Biurrun <diego@biurrun.de>2012-10-15 21:16:36 +0200
commitf1be514540dc2a6d89b8d487eabf69827bfd1c60 (patch)
treed6ca3776dfe16f892f1a197e7697ab643d95aaf1 /libavcodec/rangecoder.c
parentc1fcfdec75468009dc7de29a5d1c6adf3b2ef77d (diff)
downloadffmpeg-f1be514540dc2a6d89b8d487eabf69827bfd1c60.tar.gz
rangecoder-test: Drop timer output that clutters stderr
Diffstat (limited to 'libavcodec/rangecoder.c')
-rw-r--r--libavcodec/rangecoder.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/libavcodec/rangecoder.c b/libavcodec/rangecoder.c
index df1000844e..fcadfe47d1 100644
--- a/libavcodec/rangecoder.c
+++ b/libavcodec/rangecoder.c
@@ -136,11 +136,8 @@ int main(void)
for (i = 0; i < SIZE; i++)
r[i] = av_lfg_get(&prng) % 7;
- for (i = 0; i < SIZE; i++) {
-START_TIMER
+ for (i = 0; i < SIZE; i++)
put_rac(&c, state, r[i] & 1);
-STOP_TIMER("put_rac")
- }
ff_rac_terminate(&c);
@@ -148,14 +145,11 @@ STOP_TIMER("put_rac")
memset(state, 128, sizeof(state));
- for (i = 0; i < SIZE; i++) {
-START_TIMER
+ for (i = 0; i < SIZE; i++)
if ((r[i] & 1) != get_rac(&c, state)) {
av_log(NULL, AV_LOG_ERROR, "rac failure at %d\n", i);
return 1;
}
-STOP_TIMER("get_rac")
- }
return 0;
}