[Asterisk-code-review] res format attr h264.c: Make sure profile-level-id fmtp attr... (asterisk[13])

Sean Bright asteriskteam at digium.com
Thu Dec 13 16:03:41 CST 2018


Sean Bright has uploaded this change for review. ( https://gerrit.asterisk.org/10812


Change subject: res_format_attr_h264.c: Make sure profile-level-id fmtp attribute is set
......................................................................

res_format_attr_h264.c: Make sure profile-level-id fmtp attribute is set

The profile-iop octet (the 2nd) of profile-level-id can be zero
according to RFC 6184 Section 8.1. So we ignore its value when deciding
to include profile-level-id in the outgoing SDP.

ASTERISK-27959 #close
Reported by: David Kuehling

Change-Id: Id28cd916a3d7748058fe9609b585d07d9e243f73
---
M res/res_format_attr_h264.c
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/12/10812/1

diff --git a/res/res_format_attr_h264.c b/res/res_format_attr_h264.c
index 702a13e..d5b9138 100644
--- a/res/res_format_attr_h264.c
+++ b/res/res_format_attr_h264.c
@@ -284,7 +284,7 @@
 	APPEND_IF_NOT_H264_UNSET(attr->PACKETIZATION_MODE, str, "packetization-mode");
 	APPEND_IF_NOT_H264_UNSET(attr->LEVEL_ASYMMETRY_ALLOWED, str, "level-asymmetry-allowed");
 
-	if (attr->PROFILE_IDC && attr->PROFILE_IOP && attr->LEVEL) {
+	if (attr->PROFILE_IDC && attr->LEVEL) {
 		if (added) {
 			ast_str_append(str, 0, ";");
 		} else if (0 < ast_str_append(str, 0, "a=fmtp:%u ", payload)) {

-- 
To view, visit https://gerrit.asterisk.org/10812
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-MessageType: newchange
Gerrit-Change-Id: Id28cd916a3d7748058fe9609b585d07d9e243f73
Gerrit-Change-Number: 10812
Gerrit-PatchSet: 1
Gerrit-Owner: Sean Bright <sean.bright at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20181213/6a587924/attachment.html>


More information about the asterisk-code-review mailing list