Fix for newer avformat versions (offset_t changed to int64_t)

This commit is contained in:
Philipp Wolfer
2009-06-17 21:52:19 +02:00
parent 0e7c3577b3
commit 3e2f0b9998

View File

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