mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-25 23:28:09 +00:00
fix payload type parser, which was limited 10-character long mime-types !
This commit is contained in:
parent
06fb5da198
commit
63673995f1
1 changed files with 2 additions and 2 deletions
|
|
@ -242,9 +242,9 @@ PayloadTypeParser::PayloadTypeParser(LinphoneCore *core, const string &mime_type
|
|||
istringstream ist(mime_type);
|
||||
ist >> number;
|
||||
if (ist.fail()) {
|
||||
char type[12];
|
||||
char type[64]={0};
|
||||
int rate, channels;
|
||||
if (sscanf(mime_type.c_str(), "%11[^/]/%u/%u", type, &rate, &channels) != 3) {
|
||||
if (sscanf(mime_type.c_str(), "%63[^/]/%u/%u", type, &rate, &channels) != 3) {
|
||||
mSuccesful = false;
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue