ref: 9ac77acd346c9b399975b93e6d694e07db8b4eca
parent: a9c33a293278a0b6bc3b1122d331469bc1601865
author: Paul Brossier <piem@piem.org>
date: Tue May 3 15:22:21 EDT 2016
src/io/source_avcodec.c: really fix #53
--- a/src/io/source_avcodec.c
+++ b/src/io/source_avcodec.c
@@ -26,7 +26,7 @@
// determine whether we use libavformat from ffmpeg or from libav
#define FFMPEG_LIBAVFORMAT (LIBAVFORMAT_VERSION_MICRO > 99 )
// max_analyze_duration2 was used from ffmpeg libavformat 55.43.100 through 57.2.100
-#define FFMPEG_LIBAVFORMAT_MAX_DUR2 FFMPEG_LIBAVFORMAT && defined( \
+#define FFMPEG_LIBAVFORMAT_MAX_DUR2 FFMPEG_LIBAVFORMAT && ( \
(LIBAVFORMAT_VERSION_MAJOR == 55 && LIBAVFORMAT_VERSION_MINOR >= 43) \
|| (LIBAVFORMAT_VERSION_MAJOR == 56) \
|| (LIBAVFORMAT_VERSION_MAJOR == 57 && LIBAVFORMAT_VERSION_MINOR < 2) \