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
d02df002
Commit
d02df002
authored
18 years ago
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Include bitrate in SDP when known.
Patch from Ilkka Ollakka with cosmetic fixes.
parent
a78b832a
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
THANKS
THANKS
+1
-0
modules/stream_out/rtp.c
modules/stream_out/rtp.c
+10
-0
No files found.
THANKS
View file @
d02df002
...
...
@@ -64,6 +64,7 @@ Goetz Waschk <waschk at informatik.uni-rostock dot de> - Mandrake packages
Haakon Meland Eriksen - Norwegian translation
Han HoJoong <0demon0 at paran dot com> - Korean translation
Hans-Peter Jansen <hpj at urpla.net> - patch for module options handling
Ilkka Ollakka - SDP bitrate patch
Jan Gerber <j at v2v dot org> - patch theora decoding aspect ratio
Jan Van Boghout <vlc at macrabbit.com> - iTunes like slider for OSX intf
Javier Varela <tonxabar at hotmail.com> - Spanish translation
...
...
This diff is collapsed.
Click to expand it.
modules/stream_out/rtp.c
View file @
d02df002
...
...
@@ -244,6 +244,7 @@ struct sout_stream_id_t
char
*
psz_destination
;
int
i_port
;
int
i_cat
;
int
i_bitrate
;
/* Packetizer specific fields */
pf_rtp_packetizer_t
pf_packetize
;
...
...
@@ -806,6 +807,10 @@ 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
;
...
...
@@ -876,6 +881,10 @@ 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
);
...
...
@@ -1176,6 +1185,7 @@ static sout_stream_id_t *Add( sout_stream_t *p_stream, es_format_t *p_fmt )
id
->
ssrc
[
3
]
=
rand
()
&
0xff
;
id
->
i_sequence
=
rand
()
&
0xffff
;
id
->
i_timestamp_start
=
rand
()
&
0xffffffff
;
id
->
i_bitrate
=
p_fmt
->
i_bitrate
/
1000
;
/* Stream bitrate in kbps */
id
->
i_mtu
=
config_GetInt
(
p_stream
,
"mtu"
);
/* XXX beuk */
if
(
id
->
i_mtu
<=
16
+
MTU_REDUCE
)
...
...
This diff is collapsed.
Click to expand it.
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