[Ffmpeg-devel] [PATCH] close connection on end-of-file

Ronald S. Bultje rbultje
Mon Mar 12 00:53:56 CET 2007


Hi,

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
"uninitialized var").

Attached patch fixes this.

Ronald
-------------- next part --------------
A non-text attachment was scrubbed...
Name: d
Type: text/x-patch
Size: 303 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070311/6d99424b/attachment.bin>



More information about the ffmpeg-devel mailing list