mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-02 19:16:15 +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
@@ -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);
|
||||
|
Reference in New Issue
Block a user