[FFmpeg-cvslog] rangecoder-test: Drop timer output that clutters stderr

Diego Biurrun git at videolan.org
Tue Oct 16 14:07:34 CEST 2012


ffmpeg | branch: master | Diego Biurrun <diego at biurrun.de> | Fri Oct  5 18:53:12 2012 +0200| [f1be514540dc2a6d89b8d487eabf69827bfd1c60] | committer: Diego Biurrun

rangecoder-test: Drop timer output that clutters stderr

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f1be514540dc2a6d89b8d487eabf69827bfd1c60
---

 libavcodec/rangecoder.c |   10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/libavcodec/rangecoder.c b/libavcodec/rangecoder.c
index df10008..fcadfe4 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;
 }



More information about the ffmpeg-cvslog mailing list