Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
fd8f91e3
Commit
fd8f91e3
authored
Aug 01, 2013
by
Martin Storsjö
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rtsp: Simplify code for forming the remote peer url
Signed-off-by:
Martin Storsjö
<
martin@martin.st
>
parent
3c8bff07
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
rtsp.c
libavformat/rtsp.c
+5
-8
No files found.
libavformat/rtsp.c
View file @
fd8f91e3
...
...
@@ -1483,18 +1483,15 @@ int ff_rtsp_make_setup_request(AVFormatContext *s, const char *host, int port,
case
RTSP_LOWER_TRANSPORT_UDP
:
{
char
url
[
1024
],
options
[
30
]
=
""
;
const
char
*
peer
=
host
;
if
(
rt
->
rtsp_flags
&
RTSP_FLAG_FILTER_SRC
)
av_strlcpy
(
options
,
"?connect=1"
,
sizeof
(
options
));
/* Use source address if specified */
if
(
reply
->
transports
[
0
].
source
[
0
])
{
ff_url_join
(
url
,
sizeof
(
url
),
"rtp"
,
NULL
,
reply
->
transports
[
0
].
source
,
reply
->
transports
[
0
].
server_port_min
,
"%s"
,
options
);
}
else
{
ff_url_join
(
url
,
sizeof
(
url
),
"rtp"
,
NULL
,
host
,
reply
->
transports
[
0
].
server_port_min
,
"%s"
,
options
);
}
if
(
reply
->
transports
[
0
].
source
[
0
])
peer
=
reply
->
transports
[
0
].
source
;
ff_url_join
(
url
,
sizeof
(
url
),
"rtp"
,
NULL
,
peer
,
reply
->
transports
[
0
].
server_port_min
,
"%s"
,
options
);
if
(
!
(
rt
->
server_type
==
RTSP_SERVER_WMS
&&
i
>
1
)
&&
ff_rtp_set_remote_url
(
rtsp_st
->
rtp_handle
,
url
)
<
0
)
{
err
=
AVERROR_INVALIDDATA
;
...
...
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