Browse code

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>

Michael Niedermayer authored on 2014/09/17 01:04:51
Showing 1 changed files
... ...
@@ -33,6 +33,10 @@
33 33
 #include "libavutil/intreadwrite.h"
34 34
 #include "libavutil/timer.h"
35 35
 
36
+#ifndef AV_READ_TIME
37
+#define AV_READ_TIME(x) 0
38
+#endif
39
+
36 40
 #if HAVE_UNISTD_H
37 41
 #include <unistd.h> /* for getopt */
38 42
 #endif