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
390aabb2
Commit
390aabb2
authored
Jul 05, 2013
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tcp: Fix the default timeout
Fixes Ticket2694 Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
ef8cc06d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
tcp.c
libavformat/tcp.c
+1
-2
No files found.
libavformat/tcp.c
View file @
390aabb2
...
...
@@ -43,7 +43,7 @@ typedef struct TCPContext {
#define E AV_OPT_FLAG_ENCODING_PARAM
static
const
AVOption
options
[]
=
{
{
"listen"
,
"listen on port instead of connecting"
,
OFFSET
(
listen
),
AV_OPT_TYPE_INT
,
{.
i64
=
0
},
0
,
1
,
D
|
E
},
{
"timeout"
,
"timeout of socket i/o operations"
,
OFFSET
(
rw_timeout
),
AV_OPT_TYPE_INT
,
{.
i64
=
0
},
0
,
INT_MAX
,
D
|
E
},
{
"timeout"
,
"timeout of socket i/o operations"
,
OFFSET
(
rw_timeout
),
AV_OPT_TYPE_INT
,
{.
i64
=
500000
0
},
0
,
INT_MAX
,
D
|
E
},
{
"listen_timeout"
,
"connection awaiting timeout"
,
OFFSET
(
listen_timeout
),
AV_OPT_TYPE_INT
,
{.
i64
=
-
1
},
-
1
,
INT_MAX
,
D
|
E
},
{
NULL
}
};
...
...
@@ -66,7 +66,6 @@ static int tcp_open(URLContext *h, const char *uri, int flags)
int
ret
;
char
hostname
[
1024
],
proto
[
1024
],
path
[
1024
];
char
portstr
[
10
];
h
->
rw_timeout
=
5000000
;
av_url_split
(
proto
,
sizeof
(
proto
),
NULL
,
0
,
hostname
,
sizeof
(
hostname
),
&
port
,
path
,
sizeof
(
path
),
uri
);
...
...
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