aboutsummaryrefslogtreecommitdiffstats
path: root/codecs
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-01-11 19:05:24 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-01-11 19:05:24 +0000
commit9c1c46c009b69e4bcb513012fc05bbf1ddb4f85e (patch)
treebbf8c38471cfdca511a5e36344de3272220ac3b6 /codecs
parentccce263b5c1da5d911a81a083669957ce6e9ac98 (diff)
Kevin noted that the thing that I _actually_ changed here was that I converted
a value from a double, to a float, back to a double. Sure enough, when I changed my interim variable back to a double, it still blows up. Switching all of these to a float fixes the problem. This seems like a compiler bug where a double passed as an argument isn't getting properly aligned, so I'll have to see if I can replicate it with a small test program. (related to issue #11725) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@98308 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'codecs')
-rw-r--r--codecs/codec_resample.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/codecs/codec_resample.c b/codecs/codec_resample.c
index 871bbc3f3..251d99c23 100644
--- a/codecs/codec_resample.c
+++ b/codecs/codec_resample.c
@@ -49,12 +49,12 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
struct slin16_to_slin8_pvt {
void *resampler;
- double resample_factor;
+ float resample_factor;
};
struct slin8_to_slin16_pvt {
void *resampler;
- double resample_factor;
+ float resample_factor;
};
static int slin16_to_slin8_new(struct ast_trans_pvt *pvt)
@@ -98,7 +98,7 @@ static void slin8_to_slin16_destroy(struct ast_trans_pvt *pvt)
}
static int resample_frame(struct ast_trans_pvt *pvt,
- void *resampler, double resample_factor, struct ast_frame *f)
+ void *resampler, float resample_factor, struct ast_frame *f)
{
int total_in_buf_used = 0;
int total_out_buf_used = 0;