[FFmpeg-cvslog] ftp: favor strtoll over atoll
Hendrik Leppkes
git at videolan.org
Sun May 19 10:04:10 CEST 2013
ffmpeg | branch: master | Hendrik Leppkes <h.leppkes at gmail.com> | Sun May 19 09:37:27 2013 +0200| [df07a833f1d11639cff562a8404d2bbc3c48c2ce] | committer: 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: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=df07a833f1d11639cff562a8404d2bbc3c48c2ce
---
libavformat/ftp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/ftp.c b/libavformat/ftp.c
index 62b396c..0c1d8bb 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);
More information about the ffmpeg-cvslog
mailing list