[MPlayer-dev-eng] [patch] mplayer fails to seek large file (>2G) over http due to misparsed Content-Length

Reimar Döffinger Reimar.Doeffinger at gmx.de
Sat Jan 23 12:15:20 CET 2010


On Tue, Jan 19, 2010 at 05:48:19PM +0300, Yuriy Kaminskiy wrote:
> I've tried to play large file (4194540223 bytes) over http, and cannot seek, as
> Content-Length was misparsed/truncated with atoi.

Applied.

> atoll already used in libavformat/ (and c99), so I think it can be used here too.
> As a bonus, I've added patch to move Content-Length parsing out of
> if(Content-Type) [seems unrelated?] and removed repeated http_get_field call.

Might have been a workaround for some buggy server.
Anyway, applied with minor modification.
Thanks.



More information about the MPlayer-dev-eng mailing list