shithub: aubio

Download patch

ref: 5690daf759b473b9d13b4547ef37adc2695cf524
parent: d4a1d0fbd00e0165cd365f822213081077e0ad27
author: James Cowgill <jcowgill@jcowgill.uk>
date: Sun Feb 25 09:23:25 EST 2018

Fix build with FFmpeg 4.0

--- 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;