# HG changeset patch # User reimar # Date 1119610860 0 # Node ID 6a9db8a1a5bdf9a915a5ecd16d1fd7131695a532 # Parent 9b4bbb6098f6f3eb482da36930e42af0cece5d79 fix seeking over http for files larger 2 GB diff -r 9b4bbb6098f6 -r 6a9db8a1a5bd libmpdemux/network.c --- a/libmpdemux/network.c Fri Jun 24 10:50:53 2005 +0000 +++ b/libmpdemux/network.c Fri Jun 24 11:01:00 2005 +0000 @@ -402,7 +402,11 @@ if(pos>0) { // Extend http_send_request with possibility to do partial content retrieval - snprintf(str, 256, "Range: bytes=%d-", pos); +#ifdef __MINGW32__ + snprintf(str, 256, "Range: bytes=%I64d-", (int64_t)pos); +#else + snprintf(str, 256, "Range: bytes=%lld-", (long long)pos); +#endif http_set_field(http_hdr, str); }