From e177aedfc1113c07720e61a9c102e26425803bfd Mon Sep 17 00:00:00 2001 From: reimar Date: Sat, 23 Jan 2010 11:08:45 +0000 Subject: Use atoll to parse Content-Length to support http for files > 2GB. Patch by Yuriy Kaminskiy [yumkam mail ru]. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30398 b3059339-0415-0410-9bf9-f77b7e298cf2 --- stream/http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stream') diff --git a/stream/http.c b/stream/http.c index 117c531e4c..d507f0f001 100644 --- a/stream/http.c +++ b/stream/http.c @@ -823,7 +823,7 @@ static int http_streaming_start(stream_t *stream, int* file_format) { mp_msg(MSGT_NETWORK,MSGL_V,"Content-Type: [%s]\n", content_type ); if( (content_length = http_get_field(http_hdr, "Content-Length")) != NULL) { mp_msg(MSGT_NETWORK,MSGL_V,"Content-Length: [%s]\n", http_get_field(http_hdr, "Content-Length")); - stream->end_pos = atoi(content_length); + stream->end_pos = atoll(content_length); } // Check in the mime type table for a demuxer type i = 0; -- cgit v1.2.3