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
f8f0b0fe
Commit
f8f0b0fe
authored
Apr 09, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Backport [19749]: b= SDP ordering fix
parent
09c7494d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
modules/stream_out/rtp.c
modules/stream_out/rtp.c
+8
-8
No files found.
modules/stream_out/rtp.c
View file @
f8f0b0fe
...
...
@@ -800,6 +800,10 @@ static char *SDPGenerate( const sout_stream_t *p_stream,
sout_stream_id_t
*
id
=
p_sys
->
es
[
i
];
i_size
+=
strlen
(
"m=**d*o * RTP/AVP *
\r\n
"
)
+
10
+
10
;
if
(
id
->
i_bitrate
)
{
i_size
+=
strlen
(
"b=AS: *
\r\n
"
)
+
10
;
}
if
(
id
->
psz_rtpmap
)
{
i_size
+=
strlen
(
"a=rtpmap:* *
\r\n
"
)
+
strlen
(
id
->
psz_rtpmap
)
+
10
;
...
...
@@ -808,10 +812,6 @@ static char *SDPGenerate( const sout_stream_t *p_stream,
{
i_size
+=
strlen
(
"a=fmtp:* *
\r\n
"
)
+
strlen
(
id
->
psz_fmtp
)
+
10
;
}
if
(
id
->
i_bitrate
)
{
i_size
+=
strlen
(
"b=AS: *
\r\n
"
)
+
10
;
}
if
(
b_rtsp
)
{
i_size
+=
strlen
(
"a=control:*/trackID=*
\r\n
"
)
+
strlen
(
p_sys
->
psz_rtsp_control
)
+
10
;
...
...
@@ -869,6 +869,10 @@ static char *SDPGenerate( const sout_stream_t *p_stream,
{
continue
;
}
if
(
id
->
i_bitrate
)
{
p
+=
sprintf
(
p
,
"b=AS:%d
\r\n
"
,
id
->
i_bitrate
);
}
if
(
id
->
psz_rtpmap
)
{
p
+=
sprintf
(
p
,
"a=rtpmap:%d %s
\r\n
"
,
id
->
i_payload_type
,
...
...
@@ -879,10 +883,6 @@ static char *SDPGenerate( const sout_stream_t *p_stream,
p
+=
sprintf
(
p
,
"a=fmtp:%d %s
\r\n
"
,
id
->
i_payload_type
,
id
->
psz_fmtp
);
}
if
(
id
->
i_bitrate
)
{
p
+=
sprintf
(
p
,
"b=AS:%d
\r\n
"
,
id
->
i_bitrate
);
}
if
(
b_rtsp
)
{
p
+=
sprintf
(
p
,
"a=control:trackID=%d
\r\n
"
,
i
);
...
...
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