Commit e1855c43 authored by Tristan Matthews's avatar Tristan Matthews
Browse files

* #13814: video: default to level 0xa (1.0) if peer doesn't provide a profile-level-id

parent 3562d3f5
......@@ -668,7 +668,6 @@ bool Sdp::getOutgoingVideoSettings(map<string, string> &args) const
std::ostringstream os;
os << payload;
args["payload_type"] = os.str();
args["parameters"] = getOutgoingVideoField(codec, "parameters");
// override with profile-level-id from remote, if present
getOutgoingProfileLevelID(args["parameters"], payload);
}
......
......@@ -129,7 +129,7 @@ extractProfileLevelID(const std::string &parameters, AVCodecContext *ctx)
// If no profile-level-id is present, the Baseline Profile without
// additional constraints at Level 1 MUST be implied.
ctx->profile = FF_PROFILE_H264_BASELINE;
ctx->level = 0x1;
ctx->level = 0xa;
// ctx->level = 0x0d; // => 13 aka 1.3
if (parameters.empty())
return;
......
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