Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
f6ead8f7
Commit
f6ead8f7
authored
Apr 09, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SDP: fix ordering of b= and a=
parent
2c475507
Changes
1
Show 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 @
f6ead8f7
...
...
@@ -792,6 +792,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
;
...
...
@@ -800,10 +804,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
;
...
...
@@ -861,6 +861,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
,
...
...
@@ -871,10 +875,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