diff options
author | Sean Bright <sean.bright@gmail.com> | 2017-05-23 11:06:02 -0400 |
---|---|---|
committer | Sean Bright <sean.bright@gmail.com> | 2017-05-23 10:57:57 -0500 |
commit | 8ae0227cf33ee6abfdaa29b90864d52faacc5d2c (patch) | |
tree | 511644eaea957e155588048b2648baebba09fd4c /res/res_format_attr_h263.c | |
parent | dece2eb8929c11bad30616d8f3a236ed449c718c (diff) |
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
Diffstat (limited to 'res/res_format_attr_h263.c')
-rw-r--r-- | res/res_format_attr_h263.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/res/res_format_attr_h263.c b/res/res_format_attr_h263.c index 139fbf17a..a32f40f7d 100644 --- a/res/res_format_attr_h263.c +++ b/res/res_format_attr_h263.c @@ -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) { |