[Ffmpeg-devel] Re: [PATCH] qt-faststart > 4gb files compliant

Rich Felker dalias
Tue Mar 21 01:00:12 CET 2006

On Mon, Mar 20, 2006 at 11:21:41PM +0100, Baptiste COUDURIER wrote:
> Rich Felker wrote:
> > [...]
> > 
> > p.s. with particular implementations there may be workarounds but in
> > general the stdio FILE* interface is an _opaque_ interface and there
> > is no way to work around it. if windows does not provide 64bit FILE*
> > seeking primitives then you're stuck with 32bit limitations unless you
> > want to switch to fd io.
> Is it safe to use fseeko64 and ftello64 on win32 ? Is it always enabled
> or should we stick with fseek and ftell on win32 ?

You should do the following in a win32-specific header:

#define fseeko fseeko64
#define ftello ftello64

and then use fseeko and ftello everywhere. fseeko64 and ftello64 are
not present in ANY real standard and should never be used directly.


More information about the ffmpeg-devel mailing list