aboutsummaryrefslogtreecommitdiffstats
path: root/codecs/codec_resample.c
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2008-06-26 17:06:17 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2008-06-26 17:06:17 +0000
commita1fa45760e632d9a689d0476b25409af81a4f5d1 (patch)
treefed62da6065b0ba8588fe15f5adcc22c8e0d638a /codecs/codec_resample.c
parente4747d0d1c05c97e56dabb236b0195327b1e8ee2 (diff)
Convert casts to unions, to fix alignment issues on Solaris
(closes issue #12932) Reported by: snuffy Patches: bug_12932_20080627.diff uploaded by snuffy (license 35) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@125386 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'codecs/codec_resample.c')
-rw-r--r--codecs/codec_resample.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/codecs/codec_resample.c b/codecs/codec_resample.c
index bdf9d19f9..f0ae03307 100644
--- a/codecs/codec_resample.c
+++ b/codecs/codec_resample.c
@@ -103,7 +103,7 @@ static int resample_frame(struct ast_trans_pvt *pvt,
int total_in_buf_used = 0;
int total_out_buf_used = 0;
int16_t *in_buf = (int16_t *) f->data.ptr;
- int16_t *out_buf = (int16_t *) pvt->outbuf + pvt->samples;
+ int16_t *out_buf = pvt->outbuf.i16 + pvt->samples;
float in_buf_f[f->samples];
float out_buf_f[2048];
int res = 0;