summaryrefslogtreecommitdiff
path: root/modules/g722/g722.c
diff options
context:
space:
mode:
Diffstat (limited to 'modules/g722/g722.c')
-rw-r--r--modules/g722/g722.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/modules/g722/g722.c b/modules/g722/g722.c
index 5e07e3a..e68b7bd 100644
--- a/modules/g722/g722.c
+++ b/modules/g722/g722.c
@@ -12,11 +12,6 @@
#include <spandsp.h>
-#define DEBUG_MODULE "g722"
-#define DEBUG_LEVEL 5
-#include <re_dbg.h>
-
-
/*
http://www.soft-switch.org/spandsp-modules.html
*/
@@ -76,7 +71,6 @@ static int encode_update(struct auenc_state **aesp,
return ENOMEM;
if (!g722_encode_init(&st->enc, G722_BITRATE_64k, 0)) {
- DEBUG_WARNING("g722_encode_init failed\n");
err = EPROTO;
goto out;
}
@@ -109,7 +103,6 @@ static int decode_update(struct audec_state **adsp,
return ENOMEM;
if (!g722_decode_init(&st->dec, G722_BITRATE_64k, 0)) {
- DEBUG_WARNING("g722_decode_init failed\n");
err = EPROTO;
goto out;
}
@@ -131,11 +124,9 @@ static int encode(struct auenc_state *st, uint8_t *buf, size_t *len,
n = g722_encode(&st->enc, buf, sampv, (int)sampc);
if (n <= 0) {
- DEBUG_WARNING("g722_encode: len=%d\n", n);
return EPROTO;
}
else if (n > (int)*len) {
- DEBUG_WARNING("encode: wrote %d > %d buf\n", n, *len);
return EOVERFLOW;
}
@@ -154,10 +145,8 @@ static int decode(struct audec_state *st, int16_t *sampv, size_t *sampc,
return EINVAL;
n = g722_decode(&st->dec, sampv, buf, (int)len);
- if (n < 0) {
- DEBUG_WARNING("g722_decode: n=%d\n", n);
+ if (n < 0)
return EPROTO;
- }
*sampc = n;