[x264-devel] Re: x264 can't read large file

Gianluigi Tiesi mplayer at netfarm.it
Thu Jul 21 09:45:10 CEST 2005


On Mon, Jul 18, 2005 at 11:31:45AM +0300, Tuukka Toivonen wrote:
> On Sun, 17 Jul 2005, Gianluigi Tiesi wrote:
> 
> >> systems without the 64-bit variants. Some functions
> >> need to be replaced though:
> >>   fseek -> fseeko
> >>   long -> off_t
> >>   ftell -> ftello
> 
> >_LARGEFILE_SOURCE=1 and _FILEOFFSET_BITS=64 are enough, just remember
> 
> No, they're not. fseek takes long argument, ftell returns
> long, and as long is 32 bits on many systems, it won't work
> unless you use fseeko & ftello.
> (According to Single UNIX Specification, Version 2 and my Debian 3.1 
> manpages).
> 
> fopen / fread / fclose don't need modifications though.

Yes I've verified in stdio.h, but how fseeko and ftello are standards?
Mingw has only fseeko64 and ftello64, yes also linux has it, but they
are converted internally from fseeko and ftello when defining
__USE_FILE_OFFSET64

Bye

-- 
Gianluigi Tiesi <sherpya at netfarm.it>
EDP Project Leader
Netfarm S.r.l. - http://www.netfarm.it/
Free Software: http://oss.netfarm.it/

-- 
This is the x264-devel mailing-list
To unsubscribe, go to: http://developers.videolan.org/lists.html



More information about the x264-devel mailing list