summaryrefslogtreecommitdiff
path: root/libavutil/timer.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-03-09 15:14:33 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-03-09 15:22:02 +0100
commit4159f702a7b8e912c9dea1ab956c9ed66f1cbbe6 (patch)
tree87da731b3aa761ed83891e5e562038ba14c27b48 /libavutil/timer.h
parentc2923100f5a1199c46d5bc351fb3371956d1b90c (diff)
avutil/timer: Fix units for x86 after c708b5403346255ea5adc776645616cc7c61f078
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil/timer.h')
-rw-r--r--libavutil/timer.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/libavutil/timer.h b/libavutil/timer.h
index 49e92fdfee..3fff77ff1c 100644
--- a/libavutil/timer.h
+++ b/libavutil/timer.h
@@ -56,6 +56,10 @@
# endif
#endif
+#ifndef FF_TIMER_UNITS
+# define FF_TIMER_UNITS "UNITS"
+#endif
+
#ifdef AV_READ_TIME
#define START_TIMER \
uint64_t tend; \
@@ -76,7 +80,7 @@
tskip_count++; \
if (((tcount + tskip_count) & (tcount + tskip_count - 1)) == 0) { \
av_log(NULL, AV_LOG_ERROR, \
- "%"PRIu64" UNITS in %s, %d runs, %d skips\n", \
+ "%"PRIu64" " FF_TIMER_UNITS " in %s, %d runs, %d skips\n", \
tsum * 10 / tcount, id, tcount, tskip_count); \
} \
}