ref: 967e4041f21d7eec9db319db98a37489aa19460c
parent: d4a1d0fbd00e0165cd365f822213081077e0ad27
parent: 5690daf759b473b9d13b4547ef37adc2695cf524
author: Paul Brossier <piem@piem.org>
date: Mon Apr 23 21:04:36 EDT 2018
Merge branch 'ffmpeg-4.0', thanks to @jcowgill (closes: #173)
--- 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;