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

Michael Niedermayer michaelni
Mon Mar 12 03:17:05 CET 2007


On Sun, Mar 11, 2007 at 07:53:56PM -0400, Ronald S. Bultje wrote:
> 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.

looks ok

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
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070312/b18bdf68/attachment.pgp>

More information about the ffmpeg-devel mailing list