libav: Fix signature of avprotocol write function for ffmpeg 7

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7148>
This commit is contained in:
Sebastian Dröge 2024-05-01 12:24:08 +03:00 committed by GStreamer Marge Bot
parent bd7b5b166d
commit 2cdaa79da6

View file

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