diff --git a/main/format_cap.c b/main/format_cap.c index 17ae18cd47..bf3bd1c4bf 100644 --- a/main/format_cap.c +++ b/main/format_cap.c @@ -376,7 +376,7 @@ int ast_format_cap_update_by_allow_disallow(struct ast_format_cap *cap, const ch } - while ((this = strsep(&parse, ",|"))) { + while ((this = ast_strip(strsep(&parse, ",|")))) { int framems = 0; struct ast_format *format = NULL;