Module: sems Branch: master Commit: b722a91680499851990c192a7023cecb0ef04609 URL: https://github.com/sems-server/sems/commit/b722a91680499851990c192a7023cecb0ef04609
Author: Stefan Sayer <[email protected]> Committer: Stefan Sayer <[email protected]> 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 [email protected] http://lists.iptel.org/mailman/listinfo/semsdev
