[MPlayer-cvslog] r30398 - trunk/stream/http.c

reimar subversion at mplayerhq.hu
Sat Jan 23 12:08:45 CET 2010


Author: reimar
Date: Sat Jan 23 12:08:45 2010
New Revision: 30398

Log:
Use atoll to parse Content-Length to support http for files > 2GB.
Patch by Yuriy Kaminskiy [yumkam mail ru].

Modified:
   trunk/stream/http.c

Modified: trunk/stream/http.c
==============================================================================
--- trunk/stream/http.c	Sat Jan 23 12:03:10 2010	(r30397)
+++ trunk/stream/http.c	Sat Jan 23 12:08:45 2010	(r30398)
@@ -823,7 +823,7 @@ static int http_streaming_start(stream_t
 					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;


More information about the MPlayer-cvslog mailing list