aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-09-16 18:04:51 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-09-20 18:40:33 +0200
commit252356cf06a4effbe7df5ed150cf0ade65e081fa (patch)
treedc3b5170864849047ff54b69edfed652a4df29c5
parent56fb830c302b0cbae0d24be8993832cb548b8ee5 (diff)
downloadffmpeg-252356cf06a4effbe7df5ed150cf0ade65e081fa.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