Fixed AMR octet align detection when the SDP line contains extra field(s).
git-svn-id: http://voip.null.ro/svn/yate@6122 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
424dd72287
commit
122e36cdda
|
@ -235,8 +235,11 @@ ObjList* SDPParser::parse(const MimeSdpBody& sdp, String& addr, ObjList* oldMedi
|
||||||
line >> mode;
|
line >> mode;
|
||||||
else if (line.startSkip("annexb=",false))
|
else if (line.startSkip("annexb=",false))
|
||||||
line >> annexB;
|
line >> annexB;
|
||||||
else if (line.startSkip("octet-align=",false))
|
else if (line.startSkip("octet-align=",false)) {
|
||||||
amrOctet = (0 != line.toInteger(0));
|
int val = 0;
|
||||||
|
line >> val;
|
||||||
|
amrOctet = (0 != val);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (first) {
|
else if (first) {
|
||||||
|
|
Loading…
Reference in New Issue