format_cache.c: Add missing slin12 format to ast_format_cache_is_slinear().
authorRichard Mudgett <rmudgett@digium.com>
Wed, 8 Apr 2015 16:31:45 +0000 (16:31 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Wed, 8 Apr 2015 16:31:45 +0000 (16:31 +0000)
........

Merged revisions 434357 from http://svn.asterisk.org/svn/asterisk/branches/13

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@434383 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/format_cache.c

index 9b83a3b..6638a78 100644 (file)
@@ -500,6 +500,7 @@ struct ast_format *ast_format_cache_get_slin_by_rate(unsigned int rate)
 int ast_format_cache_is_slinear(struct ast_format *format)
 {
        if ((ast_format_cmp(format, ast_format_slin) == AST_FORMAT_CMP_EQUAL)
+               || (ast_format_cmp(format, ast_format_slin12) == AST_FORMAT_CMP_EQUAL)
                || (ast_format_cmp(format, ast_format_slin16) == AST_FORMAT_CMP_EQUAL)
                || (ast_format_cmp(format, ast_format_slin24) == AST_FORMAT_CMP_EQUAL)
                || (ast_format_cmp(format, ast_format_slin32) == AST_FORMAT_CMP_EQUAL)