From f48929fe68817b22cad142054d9dca7aa7396a8d Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Mon, 31 Aug 2020 09:34:47 -0400 Subject: [PATCH] TT#91003 fix AMR fmtp parsing Change-Id: I0259292f7150a639b79dae4ce11c54ff5a5d6ee8 --- lib/codeclib.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/codeclib.c b/lib/codeclib.c index acee191cc..5d9ecd6e6 100644 --- a/lib/codeclib.c +++ b/lib/codeclib.c @@ -1524,6 +1524,9 @@ static void amr_set_encdec_options(codec_options_t *opts, const str *fmtp, const while (str_token_sep(&token, &s, ';') == 0) { if (str_token(&key, &token, '=')) continue; + while (key.len && key.s[0] == ' ') + str_shift(&key, 1); + if (!str_cmp(&key, "octet-align")) { if (token.len == 1 && token.s[0] == '1') opts->amr.octet_aligned = 1;