[Libav-user] Building with MSVC toolchain resulting in seeking problem?
Carl Eugen Hoyos
cehoyos at ag.or.at
Tue Mar 12 16:10:01 CET 2013
John Orr <john.orr at ...> writes:
> if (whence == AVSEEK_SIZE) {
> #ifndef _MSC_VER
> struct stat st;
>
> ret = fstat(c->fd, &st);
> #else
> struct _stat64 st;
> ret = _fstati64( c->fd, &st );
> #endif
> return ret < 0 ? AVERROR(errno) : (S_ISFIFO(st.st_mode) ? 0 :
> st.st_size);
> }
> #ifndef _MSC_VER
> ret = lseek(c->fd, pos, whence);
> #else
> ret = _lseeki64(c->fd, pos, whence);
> #endif
Perhaps you could (fix the whitespace and) send a patch
to ffmpeg-devel or set up a git clone to allow merging?
Thank you for the solution!
Carl Eugen
More information about the Libav-user
mailing list