[x264-devel] Re: x264 can't read large file
Måns Rullgård
mru at inprovide.com
Thu Jul 21 11:03:00 CEST 2005
Gianluigi Tiesi said:
> 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?
They are defined in POSIX.
> 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
Does mingw have fseeko/ftello or not? I'm not sure I understand that last
sentence.
--
Måns Rullgård
mru at inprovide.com
--
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