[Ffmpeg-devel] Re: [PATCH] qt-faststart > 4gb files compliant
Baptiste COUDURIER
baptiste.coudurier
Mon Mar 20 17:05:29 CET 2006
Steve Lhomme wrote:
> Rich Felker wrote:
>
>> On Mon, Mar 20, 2006 at 02:01:40PM +0100, Steve Lhomme wrote:
>>
>>> Baptiste COUDURIER wrote:
>>>
>>>> Hi
>>>>
>>>> Steve Lhomme wrote:
>>>>
>>>>> [...]
>>>>>
>>>>>
>>>>> But now MinGW build is broken (for qt-faststart)...
>>>>>
>>>> Heard of it, will define fseeko to fseek on win32, any chance win32
>>>> have
>>>> a 64 bit functions ? fseeko64, ftello64 ?
>>>
>>> According to MSDN, fseek takes a long for the offset. So it should be
>>> enough.
>>
>>
>> No, long is not enough. That's the whole reason fseeko/ftello were
>> added by posix.
>
>
> So you might use _lseeki64(). It uses a file descriptor so you need to
> use _fileno() too.
Are you sure ftello64 and fseeko64 does not exist on MingW/Cygwin ? I
can see it in headers :
stdio.h :
int __cdecl fseeko64 (FILE*, off64_t, int);
#ifdef __USE_MINGW_FSEEK
int __cdecl __mingw_fseeko64 (FILE *, off64_t, int);
#define fseeko64(fp, offset, whence) __mingw_fseeko64(fp, offset, whence)
#endif
They could have implemented fseeko and ftello.
Change fseeko to fseeko64 and ftello to ftello64, Does it compile ?
--
Baptiste COUDURIER GnuPG Key Id: 0x5C1ABAAA
SMARTJOG S.A. http://www.smartjog.com
Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
Phone: +33 1 49966312
More information about the ffmpeg-devel
mailing list