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
a5231db0
Commit
a5231db0
authored
Sep 11, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't forget bitrate
parent
6d54aef5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
src/stream_output/sdp.c
src/stream_output/sdp.c
+6
-3
No files found.
src/stream_output/sdp.c
View file @
a5231db0
...
...
@@ -217,8 +217,9 @@ char *sdp_AddMedia (char **sdp,
outlen
+=
snprintf
(
NULL
,
0
,
"m=%s %u %s %d
\r\n
"
"b=TIAS:%u
\r\n
"
"b=RR:0
\r\n
"
,
type
,
dport
,
protocol
,
pt
);
type
,
dport
,
protocol
,
pt
,
bw
);
newsdp
=
realloc
(
*
sdp
,
outlen
+
1
);
if
(
newsdp
==
NULL
)
...
...
@@ -227,9 +228,11 @@ char *sdp_AddMedia (char **sdp,
*
sdp
=
newsdp
;
ptr
=
newsdp
+
inlen
;
ptr
+=
sprintf
(
ptr
,
"m=%s %u %s %u
\r\n
"
"b=RR:0
\r\n
"
,
ptr
+=
sprintf
(
ptr
,
"m=%s %u %s %u
\r\n
"
,
type
,
dport
,
protocol
,
pt
);
if
(
bw
>
0
)
ptr
+=
sprintf
(
ptr
,
"b=%s:%u
\r\n
"
,
bw_indep
?
"TIAS"
:
"AS"
,
bw
);
ptr
+=
sprintf
(
ptr
,
"b=RR:0
\r\n
"
);
/* RTP payload type map */
if
(
rtpmap
!=
NULL
)
...
...
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