mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 23:21:06 +01:00
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: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
e32bbd4112
commit
df07a833f1
1 changed files with 1 additions and 1 deletions
|
|
@ -332,7 +332,7 @@ static int ftp_file_size(FTPContext *s)
|
|||
if ((err = ffurl_write(s->conn_control, buf, strlen(buf))) < 0)
|
||||
return err;
|
||||
if (ftp_status(s, NULL, NULL, NULL, &res, 213) == 213) {
|
||||
s->filesize = atoll(&res[4]);
|
||||
s->filesize = strtoll(&res[4], NULL, 10);
|
||||
} else {
|
||||
s->filesize = -1;
|
||||
av_free(res);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue