summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-09-16 18:04:51 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-10-03 03:40:59 +0200
commitbe94d15a03e7fd65a254288f782b48f37842501f (patch)
tree5b375eb0baa3a2fe40a0833edfab1796b6d46a2b
parent9c57328b8192982b0c394ff5fd45a0b6863efbfd (diff)
downloadffmpeg-be94d15a03e7fd65a254288f782b48f37842501f.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> (cherry picked from commit 4a99134f1a71994a0dc4542a0d6bee8e36146b60) 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 1a699ce684..5300380ebe 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