[FFmpeg-cvslog] tools/crypto_bench: fix build when AV_READ_TIME is unavailable

Michael Niedermayer git at videolan.org
Wed Sep 17 03:21:52 CEST 2014


ffmpeg | branch: release/2.4 | Michael Niedermayer <michaelni at gmx.at> | Tue Sep 16 18:04:51 2014 +0200| [cc73b4f574b6c99066a0482bdfc20e6da1f400a7] | committer: Michael Niedermayer

tools/crypto_bench: fix build when AV_READ_TIME is unavailable

Found-by: Andreas Cadhalpun <andreas.cadhalpun at googlemail.com>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
(cherry picked from commit 4a99134f1a71994a0dc4542a0d6bee8e36146b60)

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=cc73b4f574b6c99066a0482bdfc20e6da1f400a7
---

 tools/crypto_bench.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tools/crypto_bench.c b/tools/crypto_bench.c
index 96820ae..0f62068 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



More information about the ffmpeg-cvslog mailing list