summaryrefslogtreecommitdiffstats
path: root/stream
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-01-23 11:08:45 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-01-23 11:08:45 +0000
commite177aedfc1113c07720e61a9c102e26425803bfd (patch)
tree4bc267674c7e94bc3f7a438175c654bb0dce34eb /stream
parent567a8d69a48869e80420b5aaa6e7815dec7c0439 (diff)
downloadmpv-e177aedfc1113c07720e61a9c102e26425803bfd.tar.bz2
mpv-e177aedfc1113c07720e61a9c102e26425803bfd.tar.xz
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
Diffstat (limited to 'stream')
-rw-r--r--stream/http.c2
1 files changed, 1 insertions, 1 deletions
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;