Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
afa30e51
Commit
afa30e51
authored
May 30, 2013
by
Lukasz Marek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ftp: formatting and typos fixes
parent
f77467a1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
16 deletions
+17
-16
ftp.c
libavformat/ftp.c
+17
-16
No files found.
libavformat/ftp.c
View file @
afa30e51
...
...
@@ -45,7 +45,8 @@ typedef struct {
int
conn_control_block_flag
;
/**< Controls block/unblock mode of data connection */
AVIOInterruptCB
conn_control_interrupt_cb
;
/**< Controls block/unblock mode of data connection */
URLContext
*
conn_data
;
/**< Data connection, NULL when not connected */
uint8_t
control_buffer
[
CONTROL_BUFFER_SIZE
],
*
control_buf_ptr
,
*
control_buf_end
;
/**< Control connection buffer */
uint8_t
control_buffer
[
CONTROL_BUFFER_SIZE
];
/**< Control connection buffer */
uint8_t
*
control_buf_ptr
,
*
control_buf_end
;
int
server_data_port
;
/**< Data connection port opened by server, -1 on error. */
char
hostname
[
512
];
/**< Server address. */
char
path
[
MAX_URL_SIZE
];
/**< Path to resource on server. */
...
...
@@ -63,7 +64,7 @@ typedef struct {
static
const
AVOption
options
[]
=
{
{
"timeout"
,
"set timeout of socket I/O operations"
,
OFFSET
(
rw_timeout
),
AV_OPT_TYPE_INT
,
{.
i64
=
-
1
},
-
1
,
INT_MAX
,
D
|
E
},
{
"ftp-write-seekable"
,
"control seekability of connection during encoding"
,
OFFSET
(
write_seekable
),
AV_OPT_TYPE_INT
,
{.
i64
=
0
},
0
,
1
,
E
},
{
"ftp-anonymous-password"
,
"password for anony
n
ous login. E-mail address should be used."
,
OFFSET
(
anonymous_password
),
AV_OPT_TYPE_STRING
,
{
0
},
0
,
0
,
D
|
E
},
{
"ftp-anonymous-password"
,
"password for anony
m
ous login. E-mail address should be used."
,
OFFSET
(
anonymous_password
),
AV_OPT_TYPE_STRING
,
{
0
},
0
,
0
,
D
|
E
},
{
NULL
}
};
...
...
@@ -129,7 +130,7 @@ static int ftp_get_line(FTPContext *s, char *line, int line_size)
/*
* This routine returns ftp server response code.
* Server may send more than one response for a certain command, following priorites are used:
* Server may send more than one response for a certain command, following priorit
i
es are used:
* - 5xx code is returned if occurred. (means error)
* - When pref_code is set then pref_code is return if occurred. (expected result)
* - The lowest code is returned. (means success)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment