diff --git a/libavformat/ftp.c b/libavformat/ftp.c index 62b396c0f197683910178d75edcdefe8ad74d3e2..0c1d8bbdf693aa2f236f7a5f248b8ec6714cb626 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);