[MPlayer-dev-eng] MPlayer-1.0pre6a http streaming seek bug

Wen-King Su wen-king at myri.com
Sat Jan 15 15:29:56 CET 2005

In the file libmpdemux/network.c, there is one place where the format
code used in a formatted print is wrong.  In function http_send_request,

    if(pos>0) {
    // Extend http_send_request with possibility to do partial content retrieval
	snprintf(str, 256, "Range: bytes=%d-", pos);
	http_set_field(http_hdr, str);

The format string "%d" is used to print "pos", which is of type off_t.
off_t can be 32 bits or 64 bits depending on the compilation environment.
Perhaps one can use #ifdef to choose between %d and %lld (or %I64d for
								- Wen

More information about the MPlayer-dev-eng mailing list