[Ffmpeg-devel] Re: [PATCH] file length handling
Tue Jan 30 11:38:18 CET 2007
On 1/2/07, Ronald S. Bultje <rbultje at ronald.bitfreak.net> wrote:
> On Mon, 2007-01-01, Michael Niedermayer wrote:
> > On Sun, Dec 31, 2006 at 03:25:51PM -0500, Ronald S. Bultje wrote:
> > > OK, I've attached a patch below which does just that.
> > i think ive found a much simpler solution (see svn(log)) ...
> Ah, that's much better indeed, thanks. You'll probably still want to
> protect the size=seek(SEEK_END,-1)+1 results with an if (.. < 0), else
> the return value may still end up being zero (if the seek returns -1,
> which is e.g. what file.c will return on error), which is a valid (but
> incorrect) filesize.
> Patch for that attached.
More information about the ffmpeg-devel