From 62b1bad755bb6141c5a704741bda8a4da6dfcde5 Mon Sep 17 00:00:00 2001 From: Dudemanguy Date: Thu, 7 Mar 2024 13:42:25 -0600 Subject: ad_spdif: handle const buf pointee in avio_alloc_context ffmpeg recently changed this field to be const which causes our CI to fail on newer versions. See: https://github.com/FFmpeg/FFmpeg/commit/2a68d945cd74265bb71c3d38b7a2e7f7d7e87be5 --- audio/decode/ad_spdif.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'audio') diff --git a/audio/decode/ad_spdif.c b/audio/decode/ad_spdif.c index f3dca7d175..ac6e0123ca 100644 --- a/audio/decode/ad_spdif.c +++ b/audio/decode/ad_spdif.c @@ -59,7 +59,11 @@ struct spdifContext { struct mp_decoder public; }; +#if LIBAVCODEC_VERSION_MAJOR < 61 static int write_packet(void *p, uint8_t *buf, int buf_size) +#else +static int write_packet(void *p, const uint8_t *buf, int buf_size) +#endif { struct spdifContext *ctx = p; -- cgit v1.2.3