[prev in list] [next in list] [prev in thread] [next in thread]
List: semsdev
Subject: [Semsdev] git:master:b722a916: b/f: sbc: codecs: compare encoding_param only if both != 0
From: Stefan Sayer <stefan.sayer () googlemail ! com>
Date: 2015-06-24 3:47:27
Message-ID: E1Z7bep-0007bQ-PZ () www ! kamailio ! org
[Download RAW message or body]
Module: sems
Branch: master
Commit: b722a91680499851990c192a7023cecb0ef04609
URL: https://github.com/sems-server/sems/commit/b722a91680499851990c192a7023cecb0ef04609
Author: Stefan Sayer <stefan.sayer@googlemail.com>
Committer: Stefan Sayer <stefan.sayer@googlemail.com>
Date: 2015-06-24T00:46:14+02:00
b/f: sbc: codecs: compare encoding_param only if both != 0
---
Modified: apps/sbc/SBCCallLeg.cpp
---
Diff: https://github.com/sems-server/sems/commit/b722a91680499851990c192a7023cecb0ef04609.diff
Patch: https://github.com/sems-server/sems/commit/b722a91680499851990c192a7023cecb0ef04609.patch
---
diff --git a/apps/sbc/SBCCallLeg.cpp b/apps/sbc/SBCCallLeg.cpp
index 5184f2e..299cbbe 100644
--- a/apps/sbc/SBCCallLeg.cpp
+++ b/apps/sbc/SBCCallLeg.cpp
@@ -76,7 +76,7 @@ static const SdpPayload *findPayload(const std::vector<SdpPayload>& payloads, co
}
if (p->clock_rate != payload.clock_rate) continue;
- if ((p->encoding_param >= 0) && (payload.encoding_param >= 0) &&
+ if ((p->encoding_param > 0) && (payload.encoding_param > 0) &&
(p->encoding_param != payload.encoding_param)) continue;
return &(*p);
}
_______________________________________________
Semsdev mailing list
Semsdev@lists.iptel.org
http://lists.iptel.org/mailman/listinfo/semsdev
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic