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:
Alexander Traud
2020-12-01 15:11:58 +01:00
committed by Joshua Colp
parent 51e2187a14
commit 80c14f74bc
8 changed files with 2 additions and 80 deletions

View File

@@ -702,20 +702,6 @@ static struct ast_codec siren14 = {
.get_length = siren14_length,
};
static struct ast_codec testlaw = {
.name = "testlaw",
.description = "G.711 test-law",
.type = AST_MEDIA_TYPE_AUDIO,
.sample_rate = 8000,
.minimum_ms = 10,
.maximum_ms = 150,
.default_ms = 20,
.minimum_bytes = 80,
.samples_count = ulaw_samples,
.get_length = ulaw_length,
.smooth = 1,
};
static int g719_samples(struct ast_frame *frame)
{
return (int) frame->datalen * ((float) 48000 / 8000);
@@ -969,7 +955,6 @@ int ast_codec_builtin_init(void)
res |= CODEC_REGISTER_AND_CACHE(g722);
res |= CODEC_REGISTER_AND_CACHE(siren7);
res |= CODEC_REGISTER_AND_CACHE(siren14);
res |= CODEC_REGISTER_AND_CACHE(testlaw);
res |= CODEC_REGISTER_AND_CACHE(g719);
res |= CODEC_REGISTER_AND_CACHE(opus);
res |= CODEC_REGISTER_AND_CACHE(jpeg);