Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
savoirfairelinux
jami-daemon
Commits
ef8c6565
Commit
ef8c6565
authored
Aug 21, 2013
by
Tristan Matthews
Browse files
sdp: cleanup
parent
fda5af48
Changes
1
Hide whitespace changes
Inline
Side-by-side
daemon/src/sip/sdp.cpp
View file @
ef8c6565
...
@@ -267,7 +267,7 @@ Sdp::setMediaDescriptorLines(bool audio)
...
@@ -267,7 +267,7 @@ Sdp::setMediaDescriptorLines(bool audio)
#ifdef HAVE_OPUS
#ifdef HAVE_OPUS
// Opus sample rate is allways declared as 48000 and channel num is allways 2 in rtpmap as per
// Opus sample rate is allways declared as 48000 and channel num is allways 2 in rtpmap as per
// http://tools.ietf.org/html/draft-spittka-payload-rtp-opus-03#section-6.2
// http://tools.ietf.org/html/draft-spittka-payload-rtp-opus-03#section-6.2
if
(
payload
==
Opus
::
PAYLOAD_TYPE
)
{
if
(
payload
==
Opus
::
PAYLOAD_TYPE
)
{
rtpmap
.
clock_rate
=
48000
;
rtpmap
.
clock_rate
=
48000
;
rtpmap
.
param
.
ptr
=
((
char
*
const
)
"2"
);
rtpmap
.
param
.
ptr
=
((
char
*
const
)
"2"
);
rtpmap
.
param
.
slen
=
1
;
rtpmap
.
param
.
slen
=
1
;
...
@@ -285,9 +285,9 @@ Sdp::setMediaDescriptorLines(bool audio)
...
@@ -285,9 +285,9 @@ Sdp::setMediaDescriptorLines(bool audio)
#ifdef HAVE_OPUS
#ifdef HAVE_OPUS
// Declare stereo support for opus
// Declare stereo support for opus
if
(
payload
==
Opus
::
PAYLOAD_TYPE
)
{
if
(
payload
==
Opus
::
PAYLOAD_TYPE
)
{
std
::
ostringstream
os
;
std
::
ostringstream
os
;
os
<<
"fmtp:"
<<
payload
<<
" stereo=1; sprop-stereo="
<<
(
channels
>
1
?
1
:
0
);
os
<<
"fmtp:"
<<
payload
<<
" stereo=1; sprop-stereo="
<<
(
channels
>
1
);
med
->
attr
[
med
->
attr_count
++
]
=
pjmedia_sdp_attr_create
(
memPool_
,
os
.
str
().
c_str
(),
NULL
);
med
->
attr
[
med
->
attr_count
++
]
=
pjmedia_sdp_attr_create
(
memPool_
,
os
.
str
().
c_str
(),
NULL
);
}
}
#endif
#endif
...
...
Write
Preview
Supports
Markdown
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