From 9ef9b17c6b047f1e0c95927eb759706ee06341c7 Mon Sep 17 00:00:00 2001 From: Andrew Bauer Date: Sat, 11 Oct 2014 17:14:09 -0500 Subject: [PATCH] fixes ftbs with no ffmpeg support --- src/zm_ffmpeg.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/zm_ffmpeg.h b/src/zm_ffmpeg.h index 98cf88767..d89e41254 100644 --- a/src/zm_ffmpeg.h +++ b/src/zm_ffmpeg.h @@ -45,11 +45,13 @@ extern "C" { #include #endif -#if defined(HAVE_LIBAVCODEC_AVCODEC_H) && LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(54,25,0) +#if defined(HAVE_LIBAVCODEC_AVCODEC_H) +#if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(54,25,0) #define _AVCODECID AVCodecID #else #define _AVCODECID CodecID #endif +#endif // AVFORMAT #if HAVE_LIBAVFORMAT_AVFORMAT_H