[FFmpeg-devel] qt-faststart update

Frank Barchard fbarchard
Thu Jun 25 13:56:42 CEST 2009


On Wed, Jun 24, 2009 at 2:22 PM, Reimar D?ffinger
<Reimar.Doeffinger at gmx.de>wrote:

> On Wed, Jun 24, 2009 at 10:07:47PM +0200, Karl Blomster wrote:
> > Frank Barchard wrote:
> >> Thank!  The types should be possible to deal with.  Any suggestions for
> a
> >> portable 64 bit fseek?
> >
> > I think
> >
> > #ifdef _WIN32
> > #    ifdef __MINGW32__
> > #        define fseeko fseeko64
> > #      define ftello ftello64
> > #    else
> > #        define fseeko _fseeki64
> > #        define ftello _ftelli64
> > #    endif
> > #endif
> >
> > is the closest you're going to get.
>
> See MinGW patches to add this feature. There is already a bug report with
> an unfinished patch. That is the only proper place.


Looking at file.c it uses posix

/* XXX: use llseek */static int64_t file_seek(URLContext *h, int64_t
pos, int whence){    int fd = (intptr_t) h->priv_data;    return
lseek(fd, pos, whence);}

but os_support.h redirects lseek

#ifdef __MINGW32__#  include <fcntl.h>#  define lseek(f,p,w)
_lseeki64((f), (p), (w))#endif

That doesn't seem to handle 64 bit linux/bsd, but it would handle
Visual C and Intel C, if the ifdef were removed or changed to

#ifdef _WIN32#  include <fcntl.h>#  define lseek(f,p,w) _lseeki64((f),
(p), (w))#endif


> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-devel
>



More information about the ffmpeg-devel mailing list