diff --git a/picard/musicdns/avcodec.c b/picard/musicdns/avcodec.c index c366024bf..7114ff33e 100644 --- a/picard/musicdns/avcodec.c +++ b/picard/musicdns/avcodec.c @@ -114,8 +114,13 @@ ufile_write(URLContext *h, unsigned char *buf, int size) return _write(fd, buf, size); } +#if LIBAVFORMAT_VERSION_MAJOR >= 52 +static int64_t +ufile_seek(URLContext *h, int64_t pos, int whence) +#else static offset_t ufile_seek(URLContext *h, offset_t pos, int whence) +#endif { int fd = (size_t)h->priv_data; return _lseek(fd, pos, whence);