Commit df07a833 authored by Hendrik Leppkes's avatar Hendrik Leppkes Committed by Michael Niedermayer

ftp: favor strtoll over atoll

Both strtoll and atoll have different names on MSVC, and strtoll has a
compatibility layer in place for this case.

Fixes compilation on MSVC.
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent e32bbd41
...@@ -332,7 +332,7 @@ static int ftp_file_size(FTPContext *s) ...@@ -332,7 +332,7 @@ static int ftp_file_size(FTPContext *s)
if ((err = ffurl_write(s->conn_control, buf, strlen(buf))) < 0) if ((err = ffurl_write(s->conn_control, buf, strlen(buf))) < 0)
return err; return err;
if (ftp_status(s, NULL, NULL, NULL, &res, 213) == 213) { if (ftp_status(s, NULL, NULL, NULL, &res, 213) == 213) {
s->filesize = atoll(&res[4]); s->filesize = strtoll(&res[4], NULL, 10);
} else { } else {
s->filesize = -1; s->filesize = -1;
av_free(res); av_free(res);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment