[MPlayer-dev-eng] off_t issue with MinG
Rich Felker
dalias at aerifal.cx
Tue Oct 31 21:49:22 CET 2006
On Tue, Oct 31, 2006 at 10:37:26AM -0600, John Donaghy wrote:
> Hi
>
> I've been tracking down the cause of a bug that sometimes causes
> seeking to fail in large dvr-ms files when I play them in mplayer
> compiled under MinGW. It seems the problem is caused by the fact that
> off_t is 4 bytes in MinGW (at least in the version I'm using).
>
> The issue occurs in the 'open_f' function in stream_file.c where the
> variable 'len' is defined to be of type 'off_t'. If I change the type
> of 'len' to be 'uint64_t' then it works properly. Is this an
> acceptable approach or can anyone suggest a better way?
The only acceptable solution is to hide a fix to change off_t to 64bit
somewhere that it will not be visible in the actual source files. I
thought this was done a long time ago..?
Rich
More information about the MPlayer-dev-eng
mailing list