The avio_alloc_context function has changed signature, and the following patch is required for the build script to run on both the old and new version of libavutil:
diff --git a/ac-ffmpeg/src/format/io.c b/ac-ffmpeg/src/format/io.c
index 907fccd..e3800d3 100644
--- a/ac-ffmpeg/src/format/io.c
+++ b/ac-ffmpeg/src/format/io.c
@@ -2,7 +2,11 @@
#include <libavutil/mem.h>
typedef int read_packet_t(void*, uint8_t*, int);
+#if LIBAVUTIL_VERSION_MAJOR >= 59
+typedef int write_packet_t(void*, const uint8_t*, int);
+#else
typedef int write_packet_t(void*, uint8_t*, int);
+#endif
typedef int64_t seek_t(void*, int64_t, int);
int ffw_io_is_avseek_size(int whence) {
The
avio_alloc_context
function has changed signature, and the following patch is required for the build script to run on both the old and new version oflibavutil
: