mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 11:25:35 +00:00
res_format_attr_h26x: Trim blanks in fmtp attributes
Some devices separate format attributes with a semicolon followed by a space, so trim blanks before trying to match them. ASTERISK-27008 #close Change-Id: Ia44cb2e4fef5c73dc541a29da79cb0e19c22d9cc
This commit is contained in:
@@ -156,6 +156,8 @@ static struct ast_format *h263_parse_sdp_fmtp(const struct ast_format *format, c
|
||||
while ((attrib = strsep(&attribs, ";"))) {
|
||||
unsigned int val, val2 = 0, val3 = 0, val4 = 0;
|
||||
|
||||
attrib = ast_strip(attrib);
|
||||
|
||||
if (sscanf(attrib, "SQCIF=%30u", &val) == 1) {
|
||||
attr->SQCIF = val;
|
||||
} else if (sscanf(attrib, "QCIF=%30u", &val) == 1) {
|
||||
|
Reference in New Issue
Block a user