From a6ae54eed1e45b8a61f496aacf15993cef727567 Mon Sep 17 00:00:00 2001 From: Chetan Chauhan Date: Wed, 25 Sep 2013 14:05:38 +0000 Subject: [PATCH] Add a #ifdef to include libavcodec/opt.h only for older ffmpeg's which have it --- src/zm_ffmpeg.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/zm_ffmpeg.h b/src/zm_ffmpeg.h index 525e7a4cc..2e8323219 100644 --- a/src/zm_ffmpeg.h +++ b/src/zm_ffmpeg.h @@ -30,8 +30,10 @@ extern "C" { #endif #if HAVE_LIBAVCODEC_AVCODEC_H #include +#if LIBAVFORMAT_VERSION_INT <= AV_VERSION_INT(53, 21, 0) #include #endif +#endif #if HAVE_LIBAVFORMAT_AVFORMAT_H #include #endif