changeset 30356:5cd7eb2e34c0

Use atoll to parse Content-Length to support http for files > 2GB. Patch by Yuriy Kaminskiy [yumkam mail ru].
author reimar
date Sat, 23 Jan 2010 11:08:45 +0000
parents ca3e3df28fe2
children 3fdf04500df2
files stream/http.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/stream/http.c	Sat Jan 23 11:03:10 2010 +0000
+++ b/stream/http.c	Sat Jan 23 11:08:45 2010 +0000
@@ -823,7 +823,7 @@
 					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;