[Ffmpeg-devel] [PATCH] close connection on end-of-file
Ronald S. Bultje
Mon Mar 12 00:53:56 CET 2007
On Sun, 2007-03-04, Michael Niedermayer wrote:
> On Sat, Mar 03, 2007 at 04:48:36PM -0500, Ronald S. Bultje wrote:
> > Using the Content-Length property is not an option by the way, since
> > those same MS streaming servers give a faulty Content-Length value, i.e.
> > you only get half the file if you use that.
> could you show the whole request-response from such a server, iam just
> curious ...
And thanks to this comment, I was actually able to figure out why that
happened as well. The content-length is actually correct, however, I
don't update s->filesize in process_line() b/c it is not -1 (this
condition is there so we prefer the Content-Range over the
Content-Length) since we don't clean out the struct (basically an
Attached patch fixes this.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 303 bytes
Desc: not available
More information about the ffmpeg-devel