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
94ae3c13
Commit
94ae3c13
authored
Jul 26, 2012
by
Tristan Matthews
Browse files
* #13814: video: ask for higher profile and level by default
parent
2f521d2e
Changes
2
Hide whitespace changes
Inline
Side-by-side
daemon/src/sip/sdp.cpp
View file @
94ae3c13
...
...
@@ -167,7 +167,8 @@ sfl::AudioCodec* Sdp::getSessionAudioMedia() const
}
pjmedia_sdp_media
*
Sdp
::
setMediaDescriptorLine
(
bool
audio
)
pjmedia_sdp_media
*
Sdp
::
setMediaDescriptorLine
(
bool
audio
)
{
pjmedia_sdp_media
*
med
=
PJ_POOL_ZALLOC_T
(
memPool_
,
pjmedia_sdp_media
);
...
...
@@ -225,7 +226,7 @@ pjmedia_sdp_media *Sdp::setMediaDescriptorLine(bool audio)
std
::
ostringstream
os
;
// FIXME: this should not be hardcoded, it will determine what profile and level
// our peer will send us
os
<<
"fmtp:"
<<
dynamic_payload
<<
" "
<<
libav_utils
::
DEFAULT
_H264_PROFILE_LEVEL_ID
;
os
<<
"fmtp:"
<<
dynamic_payload
<<
" "
<<
libav_utils
::
MAX
_H264_PROFILE_LEVEL_ID
;
med
->
attr
[
med
->
attr_count
++
]
=
pjmedia_sdp_attr_create
(
memPool_
,
os
.
str
().
c_str
(),
NULL
);
}
#endif
...
...
daemon/src/video/libav_utils.h
View file @
94ae3c13
...
...
@@ -48,6 +48,7 @@ namespace libav_utils {
std
::
vector
<
std
::
map
<
std
::
string
,
std
::
string
>
>
getDefaultCodecs
();
const
char
*
const
DEFAULT_H264_PROFILE_LEVEL_ID
=
"profile-level-id=428014"
;
const
char
*
const
MAX_H264_PROFILE_LEVEL_ID
=
"profile-level-id=640034"
;
}
#endif // __LIBAV_UTILS_H__
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