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
adad5b88
Commit
adad5b88
authored
Jan 12, 2012
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavf: remove disabled FF_API_RTSP_URL_OPTIONS cruft
parent
f0cb1395
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
48 deletions
+0
-48
rtsp.c
libavformat/rtsp.c
+0
-45
version.h
libavformat/version.h
+0
-3
No files found.
libavformat/rtsp.c
View file @
adad5b88
...
...
@@ -1394,51 +1394,6 @@ redirect:
if
(
port
<
0
)
port
=
RTSP_DEFAULT_PORT
;
#if FF_API_RTSP_URL_OPTIONS
/* search for options */
option_list
=
strrchr
(
path
,
'?'
);
if
(
option_list
)
{
/* Strip out the RTSP specific options, write out the rest of
* the options back into the same string. */
filename
=
option_list
;
while
(
option_list
)
{
int
handled
=
1
;
/* move the option pointer */
option
=
++
option_list
;
option_list
=
strchr
(
option_list
,
'&'
);
if
(
option_list
)
*
option_list
=
0
;
/* handle the options */
if
(
!
strcmp
(
option
,
"udp"
))
{
lower_transport_mask
|=
(
1
<<
RTSP_LOWER_TRANSPORT_UDP
);
}
else
if
(
!
strcmp
(
option
,
"multicast"
))
{
lower_transport_mask
|=
(
1
<<
RTSP_LOWER_TRANSPORT_UDP_MULTICAST
);
}
else
if
(
!
strcmp
(
option
,
"tcp"
))
{
lower_transport_mask
|=
(
1
<<
RTSP_LOWER_TRANSPORT_TCP
);
}
else
if
(
!
strcmp
(
option
,
"http"
))
{
lower_transport_mask
|=
(
1
<<
RTSP_LOWER_TRANSPORT_TCP
);
rt
->
control_transport
=
RTSP_MODE_TUNNEL
;
}
else
if
(
!
strcmp
(
option
,
"filter_src"
))
{
rt
->
rtsp_flags
|=
RTSP_FLAG_FILTER_SRC
;
}
else
{
/* Write options back into the buffer, using memmove instead
* of strcpy since the strings may overlap. */
int
len
=
strlen
(
option
);
memmove
(
++
filename
,
option
,
len
);
filename
+=
len
;
if
(
option_list
)
*
filename
=
'&'
;
handled
=
0
;
}
if
(
handled
)
av_log
(
s
,
AV_LOG_WARNING
,
"Options passed via URL are "
"deprecated, use -rtsp_transport "
"and -rtsp_flags instead.
\n
"
);
}
*
filename
=
0
;
}
#endif
if
(
!
lower_transport_mask
)
lower_transport_mask
=
(
1
<<
RTSP_LOWER_TRANSPORT_NB
)
-
1
;
...
...
libavformat/version.h
View file @
adad5b88
...
...
@@ -47,9 +47,6 @@
* Those FF_API_* defines are not part of public API.
* They may change, break or disappear at any time.
*/
#ifndef FF_API_RTSP_URL_OPTIONS
#define FF_API_RTSP_URL_OPTIONS (LIBAVFORMAT_VERSION_MAJOR < 54)
#endif
#ifndef FF_API_NEW_STREAM
#define FF_API_NEW_STREAM (LIBAVFORMAT_VERSION_MAJOR < 54)
#endif
...
...
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