diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2013-05-19 09:37:27 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-05-19 10:02:44 +0200 |
commit | df07a833f1d11639cff562a8404d2bbc3c48c2ce (patch) | |
tree | 01b3868c45ea81fa4bc386d4935121c005b30e3b /libavformat/ftp.c | |
parent | e32bbd411242658717b0dd637dd85da4c8b40437 (diff) | |
download | ffmpeg-df07a833f1d11639cff562a8404d2bbc3c48c2ce.tar.gz |
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>
Diffstat (limited to 'libavformat/ftp.c')
-rw-r--r-- | libavformat/ftp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/ftp.c b/libavformat/ftp.c index 62b396c0f1..0c1d8bbdf6 100644 --- a/libavformat/ftp.c +++ b/libavformat/ftp.c @@ -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); |