[Ffmpeg-devel] Re: [PATCH] file length handling

Ronald S. Bultje rbultje
Thu Dec 28 02:11:39 CET 2006


Hi Michael,

On Wed, 2006-12-27, Michael Niedermayer wrote:
> in principle whichever needs less changes, but theres yet another problem,
> the AVFrac removial patch has been found to not work by baptiste -> no 
> guranteed big compatibility break anytime soon -> the addition of filesize
> or a pointer would be delayed by an unpredictable amount of time
> 
> maybe simply adding slow http support into svn and then thinking about
> improving its speed by avoiding the filesize finding seeks after that
> would be better?

It would be, if it wasn't for the fact that we may know the filesize
when seeking is not possible (and demuxers can thus not deduce the
filesize by "seeking" to the end). I still think returning success on
seek only for end,-1 and back to the current position is too much of a
hack and I'm pretty sure you would agree (please say yes here :-) ).

I don't mind if file_size is not available for a while (until whenever
is the next time that ABI is broken) on such streams, but it should be,
eventually. Adding file_size really is the right thing to do, imo.

Ronald





More information about the ffmpeg-devel mailing list