aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/ra288.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2012-08-26 11:29:39 +0200
committerDiego Biurrun <diego@biurrun.de>2012-08-27 20:37:49 +0200
commitdafcbfe44361b0d3caa22b15bc95e38ba80af7e6 (patch)
treebe178be68a80c2ee0a2251b52f4238b476994156 /libavcodec/ra288.c
parent55498543354335697bf1c5616a2ba94c64fbdcf1 (diff)
downloadffmpeg-dafcbfe44361b0d3caa22b15bc95e38ba80af7e6.tar.gz
celp_math: Replace duplicate ff_dot_productf() by ff_scalarproduct_c()
Diffstat (limited to 'libavcodec/ra288.c')
-rw-r--r--libavcodec/ra288.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libavcodec/ra288.c b/libavcodec/ra288.c
index c13d0e633e..1d02c7bf41 100644
--- a/libavcodec/ra288.c
+++ b/libavcodec/ra288.c
@@ -25,7 +25,6 @@
#include "get_bits.h"
#include "ra288.h"
#include "lpc.h"
-#include "celp_math.h"
#include "celp_filters.h"
#define MAX_BACKWARD_FILTER_ORDER 36
@@ -74,7 +73,7 @@ static av_cold int ra288_decode_init(AVCodecContext *avctx)
static void convolve(float *tgt, const float *src, int len, int n)
{
for (; n >= 0; n--)
- tgt[n] = ff_dot_productf(src, src - n, len);
+ tgt[n] = ff_scalarproduct_float_c(src, src - n, len);
}
@@ -103,7 +102,7 @@ static void decode(RA288Context *ractx, float gain, int cb_coef)
for (i=0; i < 5; i++)
buffer[i] = codetable[cb_coef][i] * sumsum;
- sum = ff_dot_productf(buffer, buffer, 5) * ((1<<24)/5.);
+ sum = ff_scalarproduct_float_c(buffer, buffer, 5) * ((1 << 24) / 5.);
sum = FFMAX(sum, 1);