mirror of
https://github.com/fergalmoran/picard.git
synced 2026-02-03 14:23:58 +00:00
Fix for newer avformat versions (offset_t changed to int64_t)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user