From: James Cowgill Date: Sun, 25 Feb 2018 14:23:25 +0000 (+0000) Subject: Fix build with FFmpeg 4.0 X-Git-Tag: 0.4.7~34^2 X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=5690daf759b473b9d13b4547ef37adc2695cf524;p=aubio.git Fix build with FFmpeg 4.0 --- diff --git a/src/io/source_avcodec.c b/src/io/source_avcodec.c index ccdce807..8197445c 100644 --- a/src/io/source_avcodec.c +++ b/src/io/source_avcodec.c @@ -58,7 +58,11 @@ #include "fmat.h" #include "source_avcodec.h" +#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(56, 56, 0) #define AUBIO_AVCODEC_MAX_BUFFER_SIZE FF_MIN_BUFFER_SIZE +#else +#define AUBIO_AVCODEC_MAX_BUFFER_SIZE AV_INPUT_BUFFER_MIN_SIZE +#endif struct _aubio_source_avcodec_t { uint_t hop_size;