From e1855c437f3d31713d134b4642590e4c25cd3039 Mon Sep 17 00:00:00 2001
From: Tristan Matthews <tristan.matthews@savoirfairelinux.com>
Date: Fri, 27 Jul 2012 10:09:09 -0400
Subject: [PATCH] * #13814: video: default to level 0xa (1.0) if peer doesn't
 provide a profile-level-id

---
 daemon/src/sip/sdp.cpp                 | 1 -
 daemon/src/video/video_send_thread.cpp | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/daemon/src/sip/sdp.cpp b/daemon/src/sip/sdp.cpp
index 9ca01af312..abb9453989 100644
--- a/daemon/src/sip/sdp.cpp
+++ b/daemon/src/sip/sdp.cpp
@@ -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);
         }
diff --git a/daemon/src/video/video_send_thread.cpp b/daemon/src/video/video_send_thread.cpp
index f731fe8151..622a0d5338 100644
--- a/daemon/src/video/video_send_thread.cpp
+++ b/daemon/src/video/video_send_thread.cpp
@@ -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;
-- 
GitLab