mirror of
https://github.com/mpv-player/mpv
synced 2025-01-27 18:13:15 +00:00
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
This commit is contained in:
parent
567a8d69a4
commit
e177aedfc1
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user