EFR codec fixup.

While EFR has a canonical format of 31 bytes, the codec_efr.c *does not*
use that canonical format as input.  Rather, it uses the format of .amr
files with a 0x3C header as first byte.  So the resulting encode/decode
functions should not assume 31 bytes, but 32 bytes.
This commit is contained in:
Harald Welte 2017-05-28 13:46:21 +02:00
parent ac3517e715
commit fa93cec8a1
1 changed files with 2 additions and 2 deletions

View File

@ -84,7 +84,7 @@ codec_efr_encode(void *state, uint8_t *cod, const uint8_t *pcm, unsigned int pcm
if (rv != 32)
return -1;
return EFR_CANON_LEN;
return 32;
}
static int
@ -92,7 +92,7 @@ codec_efr_decode(void *state, uint8_t *pcm, const uint8_t *cod, unsigned int cod
{
struct codec_efr_state *st = state;
assert(cod_len == EFR_CANON_LEN);
assert(cod_len == 32);
BENCHMARK_START;
Decoder_Interface_Decode(
st->decoder,