mirror of https://github.com/sipwise/sems.git
parent
5d72c50b16
commit
dc868916e6
@ -0,0 +1,25 @@
|
||||
From 09dca94aa38c3e9ec5efc9b3c119fa97ce404bed Mon Sep 17 00:00:00 2001
|
||||
From: Raphael Coeffic <rco@iptel.org>
|
||||
Date: Mon, 17 Mar 2014 12:34:53 +0100
|
||||
Subject: [PATCH] b/f: sbc: fixed reading encoding param in readPayload()
|
||||
|
||||
---
|
||||
apps/sbc/SBCCallProfile.cpp | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/apps/sbc/SBCCallProfile.cpp b/apps/sbc/SBCCallProfile.cpp
|
||||
index ce93ef2..2654fd8 100644
|
||||
--- a/apps/sbc/SBCCallProfile.cpp
|
||||
+++ b/apps/sbc/SBCCallProfile.cpp
|
||||
@@ -1347,7 +1347,7 @@ static bool readPayload(SdpPayload &p, const string &src)
|
||||
|
||||
if (elems.size() < 1) return false;
|
||||
|
||||
- if (elems.size() > 2) str2int(elems[1], p.encoding_param);
|
||||
+ if (elems.size() > 2) str2int(elems[2], p.encoding_param);
|
||||
if (elems.size() > 1) str2int(elems[1], p.clock_rate);
|
||||
else p.clock_rate = 8000; // default value
|
||||
p.encoding_name = elems[0];
|
||||
--
|
||||
2.1.4
|
||||
|
||||
Loading…
Reference in new issue