/* This changed in ffmpeg 5.1, see https://github.com/FFmpeg/FFmpeg/commit/086a8048 */
#if LIBAVUTIL_VERSION_MAJOR >= 58 || (LIBAVUTIL_VERSION_MAJOR >= 57 && defined(FF_API_OLD_CHANNEL_LAYOUT))
#define NEW_CHANNEL_API
#endif

/* Old FFT API was marked deprecated in ffmpeg 6.1 */
#if LIBAVUTIL_VERSION_MAJOR > 58 || (LIBAVUTIL_VERSION_MAJOR == 58 && LIBAVUTIL_VERSION_MINOR >= 29)
#define NEW_FFT_TX_API
#endif

/* Old method was marked deprecated in ffmpeg 7.1 */
#if LIBAVUTIL_VERSION_MAJOR > 59 || (LIBAVUTIL_VERSION_MAJOR == 59 && LIBAVUTIL_VERSION_MINOR >= 39)
#define NEW_DEFAULT_CODEC_API
#endif

/* Old parameters exist but stopped working in ffmpeg 8.0
   see: https://github.com/FFmpeg/FFmpeg/blob/master/doc/APIchanges#L220-L236 */
#if LIBAVUTIL_VERSION_MAJOR > 60 || (LIBAVUTIL_VERSION_MAJOR == 60 && LIBAVUTIL_VERSION_MINOR >= 8)
#define NEW_ARRAY_PARAMS
#endif
