From 3e2f0b9998c19d79707ed3a8ada97ef59a9929e3 Mon Sep 17 00:00:00 2001 From: Philipp Wolfer Date: Wed, 17 Jun 2009 21:52:19 +0200 Subject: [PATCH] Fix for newer avformat versions (offset_t changed to int64_t) --- picard/musicdns/avcodec.c | 5 +++++ 1 file changed, 5 insertions(+) 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);