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

Rich Felker dalias
Mon Mar 20 22:49:11 CET 2006

On Mon, Mar 20, 2006 at 07:26:13PM +0000, M?ns Rullg?rd wrote:
> Erik Slagter <erik at slagter.name> writes:
> > On Mon, 2006-03-20 at 16:09 +0100, Steve Lhomme wrote:
> >
> >> So you might use _lseeki64(). It uses a file descriptor so you need to 
> >> use _fileno() too.
> >
> > Doesn't this interfere with stdio buffering? Maybe an fseek(fp, 0,
> > SEEK_CUR) or similar is required to flush buffers first?
> Yes, something like that.

This will not necessarily flush read buffers. It's
implementation-specific. An advanced stdio implementation can do
in-buffer seeks as long as it correctly handles switching to writing
mode after the seek if the next operation is a write.


More information about the ffmpeg-devel mailing list