MinGW and big avi files (32bit)

"Alexander Melkov" <[email protected]>
Newsgroups gmane.comp.video.mplayer.cygwin
Message-ID <014601c81e1a$4e542720$020010ac@uuuu>
There is a problem with Mplayer (rc2; as well as rc1 binary that can be downloaded brom site).

Although it can open and play avi files over 2GB in size, it can not seek within them. The problem is 
because:
1) MinGW defines off_t as long inside sys/types.h
2) mplayer uses lseek function that also returns long in MinGW

I've made a `quick hack' that seems to have solved the problem (at least, mplayer compiles, plays and 
seeks):

in C:/MinGW/include/sys/types.h:
redefined _off_t to __int64;

in mplayer's config.h
#define llseek _lseeki64

in mplayer's stream directory:
replaced every occurence of lseek with llseek

I hope that mplayer maintainers will take this problem into account and create some non-hackish 
solution.

Best regards, Alexander Melkov
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.