From 0871a55c8af637817600c1f7537054c7e783044b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 1 May 2024 12:24:08 +0300 Subject: [PATCH] libav: Fix signature of avprotocol write function for ffmpeg 7 Part-of: --- subprojects/gst-libav/ext/libav/gstavprotocol.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/subprojects/gst-libav/ext/libav/gstavprotocol.c b/subprojects/gst-libav/ext/libav/gstavprotocol.c index 249b240642..cb607d3012 100644 --- a/subprojects/gst-libav/ext/libav/gstavprotocol.c +++ b/subprojects/gst-libav/ext/libav/gstavprotocol.c @@ -102,7 +102,11 @@ gst_ffmpegdata_read (void *priv_data, unsigned char *buf, int size) } static int +#if LIBAVUTIL_VERSION_MAJOR >= 59 +gst_ffmpegdata_write (void *priv_data, const uint8_t * buf, int size) +#else gst_ffmpegdata_write (void *priv_data, uint8_t * buf, int size) +#endif { GstProtocolInfo *info; GstBuffer *outbuf;