diff options
author | qwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-05-24 15:14:02 +0000 |
---|---|---|
committer | qwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-05-24 15:14:02 +0000 |
commit | fb544759612fa82644e9cea168b176cb04bfb038 (patch) | |
tree | 4281df266d97b329297423b6935c929c6be36ddc /codecs | |
parent | bfb9028ee7b60eb0f3ec6feeb4da128a315166fb (diff) |
Fix handling of zero-length frames when a codec is capable of native PLC.
Issue 9183, patch by Mihai.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@65877 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'codecs')
-rw-r--r-- | codecs/codec_ilbc.c | 1 | ||||
-rw-r--r-- | codecs/codec_speex.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/codecs/codec_ilbc.c b/codecs/codec_ilbc.c index 34847fcc7..637f22d12 100644 --- a/codecs/codec_ilbc.c +++ b/codecs/codec_ilbc.c @@ -203,6 +203,7 @@ static struct ast_translator ilbctolin = { .sample = ilbctolin_sample, .desc_size = sizeof(struct ilbc_coder_pvt), .buf_size = BUFFER_SAMPLES * 2, + .native_plc = 1, }; static struct ast_translator lintoilbc = { diff --git a/codecs/codec_speex.c b/codecs/codec_speex.c index 8825f8158..c20ca426e 100644 --- a/codecs/codec_speex.c +++ b/codecs/codec_speex.c @@ -355,6 +355,7 @@ static struct ast_translator speextolin = { .desc_size = sizeof(struct speex_coder_pvt), .buffer_samples = BUFFER_SAMPLES, .buf_size = BUFFER_SAMPLES * 2, + .native_plc = 1, }; static struct ast_translator lintospeex = { |