mirror of
https://github.com/mpv-player/mpv
synced 2025-02-06 07:01:45 +00:00
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: 2a68d945cd
This commit is contained in:
parent
68fbdc88d2
commit
62b1bad755
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user