tools/crypto_bench: fix build when AV_READ_TIME is unavailable
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 16 Sep 2014 16:04:51 +0000 (18:04 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 16 Sep 2014 16:25:43 +0000 (18:25 +0200)
Found-by: Andreas Cadhalpun <andreas.cadhalpun@googlemail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tools/crypto_bench.c

index 96820ae..0f62068 100644 (file)
 #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