summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-09-16 18:04:51 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-09-16 18:25:43 +0200
commit4a99134f1a71994a0dc4542a0d6bee8e36146b60 (patch)
tree9e7cbed2dbf87675c04435cd2cd9d44f705c4e8e
parentd469aa8cfaa9ab6dceb9b8e5d072acc4b20aac8c (diff)
downloadffmpeg-4a99134f1a71994a0dc4542a0d6bee8e36146b60.tar.gz
tools/crypto_bench: fix build when AV_READ_TIME is unavailable
Found-by: Andreas Cadhalpun <andreas.cadhalpun@googlemail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--tools/crypto_bench.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/crypto_bench.c b/tools/crypto_bench.c
index 96820ae428..0f62068905 100644
--- a/tools/crypto_bench.c
+++ b/tools/crypto_bench.c
@@ -33,6 +33,10 @@
#include "libavutil/intreadwrite.h"
#include "libavutil/timer.h"
+#ifndef AV_READ_TIME
+#define AV_READ_TIME(x) 0
+#endif
+
#if HAVE_UNISTD_H
#include <unistd.h> /* for getopt */
#endif