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
5a2cb782
Commit
5a2cb782
authored
Oct 12, 2012
by
Martin Storsjö
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rtspdec: Set the default port for listen mode, if none is specified
Signed-off-by:
Martin Storsjö
<
martin@martin.st
>
parent
c80b59f6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
rtspdec.c
libavformat/rtspdec.c
+4
-0
No files found.
libavformat/rtspdec.c
View file @
5a2cb782
...
@@ -621,6 +621,10 @@ static int rtsp_listen(AVFormatContext *s)
...
@@ -621,6 +621,10 @@ static int rtsp_listen(AVFormatContext *s)
/* ff_url_join. No authorization by now (NULL) */
/* ff_url_join. No authorization by now (NULL) */
ff_url_join
(
rt
->
control_uri
,
sizeof
(
rt
->
control_uri
),
"rtsp"
,
NULL
,
host
,
ff_url_join
(
rt
->
control_uri
,
sizeof
(
rt
->
control_uri
),
"rtsp"
,
NULL
,
host
,
port
,
"%s"
,
path
);
port
,
"%s"
,
path
);
if
(
port
<
0
)
port
=
RTSP_DEFAULT_PORT
;
/* Create TCP connection */
/* Create TCP connection */
ff_url_join
(
tcpname
,
sizeof
(
tcpname
),
"tcp"
,
NULL
,
host
,
port
,
ff_url_join
(
tcpname
,
sizeof
(
tcpname
),
"tcp"
,
NULL
,
host
,
port
,
"?listen&listen_timeout=%d"
,
rt
->
initial_timeout
*
1000
);
"?listen&listen_timeout=%d"
,
rt
->
initial_timeout
*
1000
);
...
...
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