[Ffmpeg-devel] [PATCH] close connection on end-of-file
Mon Mar 12 03:17:05 CET 2007
On Sun, Mar 11, 2007 at 07:53:56PM -0400, Ronald S. Bultje wrote:
> 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.
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
In a rich man's house there is no place to spit but his face.
-- Diogenes of Sinope
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: not available
More information about the ffmpeg-devel