[FFmpeg-cvslog] avutil/timer: Fix units for x86 after c708b5403346255ea5adc776645616cc7c61f078

Michael Niedermayer git at videolan.org
Sun Mar 9 15:23:31 CET 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Mar  9 15:14:33 2014 +0100| [4159f702a7b8e912c9dea1ab956c9ed66f1cbbe6] | committer: Michael Niedermayer

avutil/timer: Fix units for x86 after c708b5403346255ea5adc776645616cc7c61f078

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 libavutil/timer.h     |    6 +++++-
 libavutil/x86/timer.h |    1 +
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/libavutil/timer.h b/libavutil/timer.h
index 49e92fd..3fff77f 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);          \
         }                                                                 \
     }
diff --git a/libavutil/x86/timer.h b/libavutil/x86/timer.h
index d812d46..5b24b51 100644
--- a/libavutil/x86/timer.h
+++ b/libavutil/x86/timer.h
@@ -25,6 +25,7 @@
 
 #if HAVE_INLINE_ASM
 
+#define FF_TIMER_UNITS "decicycles"
 #define AV_READ_TIME read_time
 
 static inline uint64_t read_time(void)



More information about the ffmpeg-cvslog mailing list