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:
marian 2016-06-02 11:30:10 +00:00
parent 424dd72287
commit 122e36cdda
1 changed files with 5 additions and 2 deletions

View File

@ -235,8 +235,11 @@ ObjList* SDPParser::parse(const MimeSdpBody& sdp, String& addr, ObjList* oldMedi
line >> mode;
else if (line.startSkip("annexb=",false))
line >> annexB;
else if (line.startSkip("octet-align=",false))
amrOctet = (0 != line.toInteger(0));
else if (line.startSkip("octet-align=",false)) {
int val = 0;
line >> val;
amrOctet = (0 != val);
}
}
}
else if (first) {