summaryrefslogtreecommitdiffstats
path: root/liba52
diff options
context:
space:
mode:
Diffstat (limited to 'liba52')
-rw-r--r--liba52/test.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/liba52/test.c b/liba52/test.c
index fcfc5cf207..3a441902ce 100644
--- a/liba52/test.c
+++ b/liba52/test.c
@@ -148,7 +148,7 @@ int accel=0;
int sample_rate=0;
int bit_rate=0;
#ifdef TIMING
-long long t, sum=0;
+long long t, sum=0, min=256*256*256*64;
#endif
samples = a52_init (accel);
@@ -209,14 +209,17 @@ ENDTIMING
}
s16+=2*i;
}
+#ifdef TIMING
+if(sum<min) min=sum;
+sum=0;
+#endif
fwrite(out_buf,6*256*2*2,1,stdout);
}
eof:
-
#ifdef TIMING
-fprintf(stderr, "%4.4fm cycles\n",sum/1000000.0);
+fprintf(stderr, "%4.4fk cycles ",min/1000.0);
+sum=0;
#endif
-
}