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

Tuukka Toivonen tuukkat at ee.oulu.fi
Mon Jul 18 10:31:45 CEST 2005


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.

-- 
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