summaryrefslogtreecommitdiff
path: root/kernel/wctc4xxp/base.c
diff options
context:
space:
mode:
authorsruffell <sruffell@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2008-12-04 23:01:48 +0000
committersruffell <sruffell@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2008-12-04 23:01:48 +0000
commitef7bbab6bcc4cef87bfa733964113262cc53b545 (patch)
treeae4c57ee32ca65a979d2d02455f23b765e043a63 /kernel/wctc4xxp/base.c
parent99ef7bd6d6a66258b5c75eb96bc754b35e694848 (diff)
- Ensure that the sample size is set correctly when decoding G723 packets.
- Do not use an already built channel if the source and destination formats do not match the formats we want. This fixes a regression introduced by the new transcoder interface where a translation path from one complex codec to another can result in garbled audio. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4592 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'kernel/wctc4xxp/base.c')
-rw-r--r--kernel/wctc4xxp/base.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/wctc4xxp/base.c b/kernel/wctc4xxp/base.c
index 930dbd3..4b22299 100644
--- a/kernel/wctc4xxp/base.c
+++ b/kernel/wctc4xxp/base.c
@@ -1756,6 +1756,8 @@ wctc4xxp_write(struct file *file, const char __user *frame, size_t count, loff_t
return -EINVAL;
}
cpvt->timestamp += G723_SAMPLES;
+ } else if (ZT_FORMAT_G723_1 == dtc->dstfmt) {
+ cpvt->timestamp += G723_SAMPLES;
} else {
/* Same for ulaw and alaw */
cpvt->timestamp += G729_SAMPLES;