mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-02 11:58:40 +00:00
codecs: Remove test-law.
This was dead code, test code introduced with Asterisk 13. This was found while analyzing ASTERISK_28416 and ASTERISK_29185. This change partly fixes, not closes those two issues. Change-Id: I42d0daa37f6f334c7d86672f06f085858a3f3940
This commit is contained in:
committed by
Joshua Colp
parent
51e2187a14
commit
80c14f74bc
@@ -76,8 +76,6 @@ uint64_t ast_format_compatibility_format2bitfield(const struct ast_format *forma
|
||||
return AST_FORMAT_SPEEX16;
|
||||
} else if (ast_format_cmp(format, ast_format_opus) == AST_FORMAT_CMP_EQUAL) {
|
||||
return AST_FORMAT_OPUS;
|
||||
} else if (ast_format_cmp(format, ast_format_testlaw) == AST_FORMAT_CMP_EQUAL) {
|
||||
return AST_FORMAT_TESTLAW;
|
||||
} else if (ast_format_cmp(format, ast_format_h261) == AST_FORMAT_CMP_EQUAL) {
|
||||
return AST_FORMAT_H261;
|
||||
} else if (ast_format_cmp(format, ast_format_h263) == AST_FORMAT_CMP_EQUAL) {
|
||||
@@ -143,8 +141,6 @@ uint64_t ast_format_compatibility_codec2bitfield(const struct ast_codec *codec)
|
||||
return AST_FORMAT_SPEEX16;
|
||||
} else if (codec->id == ast_format_get_codec_id(ast_format_opus)) {
|
||||
return AST_FORMAT_OPUS;
|
||||
} else if (codec->id == ast_format_get_codec_id(ast_format_testlaw)) {
|
||||
return AST_FORMAT_TESTLAW;
|
||||
} else if (codec->id == ast_format_get_codec_id(ast_format_h261)) {
|
||||
return AST_FORMAT_H261;
|
||||
} else if (codec->id == ast_format_get_codec_id(ast_format_h263)) {
|
||||
@@ -230,9 +226,6 @@ struct ast_format *ast_format_compatibility_bitfield2format(uint64_t bitfield)
|
||||
/*! Opus audio (8kHz, 16kHz, 24kHz, 48Khz) */
|
||||
case AST_FORMAT_OPUS:
|
||||
return ast_format_opus;
|
||||
/*! Raw mu-law data (G.711) */
|
||||
case AST_FORMAT_TESTLAW:
|
||||
return ast_format_testlaw;
|
||||
|
||||
/*! H.261 Video */
|
||||
case AST_FORMAT_H261:
|
||||
|
||||
Reference in New Issue
Block a user