# HG changeset patch # User reimar # Date 1264244925 0 # Node ID 5cd7eb2e34c007fb9f33c7ef9e035ee50d9e60a5 # Parent ca3e3df28fe228ed305707690e7329420fbea612 Use atoll to parse Content-Length to support http for files > 2GB. Patch by Yuriy Kaminskiy [yumkam mail ru]. diff -r ca3e3df28fe2 -r 5cd7eb2e34c0 stream/http.c --- 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;