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
2fea9650
Commit
2fea9650
authored
Mar 03, 2009
by
Ronald S. Bultje
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reindent after r17777.
Originally committed as revision 17778 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
f830c9a4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
13 deletions
+14
-13
rtsp.c
libavformat/rtsp.c
+14
-13
No files found.
libavformat/rtsp.c
View file @
2fea9650
...
...
@@ -927,7 +927,7 @@ make_setup_request (AVFormatContext *s, const char *host, int port,
}
else
rtsp_st
=
rt
->
rtsp_streams
[
i
>
rtx
?
i
:
i
-
1
];
}
else
rtsp_st
=
rt
->
rtsp_streams
[
i
];
rtsp_st
=
rt
->
rtsp_streams
[
i
];
/* RTP/UDP */
if
(
lower_transport
==
RTSP_LOWER_TRANSPORT_UDP
)
{
...
...
@@ -1316,11 +1316,12 @@ static int udp_read_packet(AVFormatContext *s, RTSPStream **prtsp_st,
for
(
i
=
0
;
i
<
rt
->
nb_rtsp_streams
;
i
++
)
{
rtsp_st
=
rt
->
rtsp_streams
[
i
];
if
(
rtsp_st
->
rtp_handle
)
{
/* currently, we cannot probe RTCP handle because of blocking restrictions */
rtp_get_file_handles
(
rtsp_st
->
rtp_handle
,
&
fd1
,
&
fd2
);
if
(
fd1
>
fd_max
)
fd_max
=
fd1
;
FD_SET
(
fd1
,
&
rfds
);
/* currently, we cannot probe RTCP handle because of
* blocking restrictions */
rtp_get_file_handles
(
rtsp_st
->
rtp_handle
,
&
fd1
,
&
fd2
);
if
(
fd1
>
fd_max
)
fd_max
=
fd1
;
FD_SET
(
fd1
,
&
rfds
);
}
}
tv
.
tv_sec
=
0
;
...
...
@@ -1330,15 +1331,15 @@ static int udp_read_packet(AVFormatContext *s, RTSPStream **prtsp_st,
for
(
i
=
0
;
i
<
rt
->
nb_rtsp_streams
;
i
++
)
{
rtsp_st
=
rt
->
rtsp_streams
[
i
];
if
(
rtsp_st
->
rtp_handle
)
{
rtp_get_file_handles
(
rtsp_st
->
rtp_handle
,
&
fd1
,
&
fd2
);
if
(
FD_ISSET
(
fd1
,
&
rfds
))
{
ret
=
url_read
(
rtsp_st
->
rtp_handle
,
buf
,
buf_size
);
if
(
ret
>
0
)
{
*
prtsp_st
=
rtsp_st
;
return
ret
;
rtp_get_file_handles
(
rtsp_st
->
rtp_handle
,
&
fd1
,
&
fd2
);
if
(
FD_ISSET
(
fd1
,
&
rfds
))
{
ret
=
url_read
(
rtsp_st
->
rtp_handle
,
buf
,
buf_size
);
if
(
ret
>
0
)
{
*
prtsp_st
=
rtsp_st
;
return
ret
;
}
}
}
}
}
}
}
...
...
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