Commit 94ae3c13 authored by Tristan Matthews's avatar Tristan Matthews
Browse files

* #13814: video: ask for higher profile and level by default

parent 2f521d2e
......@@ -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
......
......@@ -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__
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment