[MPlayer-cygwin] MinGW and big avi files (32bit)
Alexander Melkov
melkov at comptek.ru
Sat Nov 3 14:06:07 CET 2007
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
More information about the MPlayer-cygwin
mailing list