Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
297002cf
Commit
297002cf
authored
Jun 16, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
RTP sout: append RTCP BYE to the Sender Report
Pointed-out-by: Sébastien Escudier
parent
9074b2fc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
modules/stream_out/rtcp.c
modules/stream_out/rtcp.c
+8
-3
No files found.
modules/stream_out/rtcp.c
View file @
297002cf
...
...
@@ -53,7 +53,7 @@
struct
rtcp_sender_t
{
size_t
length
;
/* RTCP packet length */
uint8_t
payload
[
28
+
8
+
(
2
*
257
)];
uint8_t
payload
[
28
+
8
+
(
2
*
257
)
+
8
];
int
handle
;
/* RTCP socket handler */
uint32_t
packets
;
/* RTP packets sent */
...
...
@@ -164,15 +164,20 @@ void CloseRTCP (rtcp_sender_t *rtcp)
return
;
uint8_t
*
ptr
=
rtcp
->
payload
;
uint64_t
now64
=
NTPtime64
();
SetQWBE
(
ptr
+
8
,
now64
);
/* Update the Sender Report timestamp */
/* Bye */
ptr
+=
rtcp
->
length
;
ptr
[
0
]
=
(
2
<<
6
)
|
1
;
/* V = 2, P = 0, SC = 1 */
ptr
[
1
]
=
203
;
/* payload type: Bye */
SetWBE
(
ptr
+
2
,
1
);
/* SSRC is already there :) */
memcpy
(
ptr
+
4
,
rtcp
->
payload
+
4
,
4
);
/* Copy SSRC from Sender Report */
rtcp
->
length
+=
8
;
/* We are THE sender, so we are more important than anybody else, so
* we can afford not to check bandwidth constraints here. */
send
(
rtcp
->
handle
,
rtcp
->
payload
,
8
,
0
);
send
(
rtcp
->
handle
,
rtcp
->
payload
,
rtcp
->
length
,
0
);
net_Close
(
rtcp
->
handle
);
}
...
...
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