Browse Source

ff_dot_product(): change return value to int64_t

Idea-by: Vitor
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.9
Michael Niedermayer 14 years ago
parent
commit
78f08c06e6
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      libavcodec/celp_math.c
  2. +1
    -1
      libavcodec/celp_math.h

+ 1
- 1
libavcodec/celp_math.c View File

@@ -197,7 +197,7 @@ int ff_log2(uint32_t value)
return (power_int << 15) + value;
}

int ff_dot_product(const int16_t *a, const int16_t *b, int length)
int64_t ff_dot_product(const int16_t *a, const int16_t *b, int length)
{
int i;
int64_t sum = 0;


+ 1
- 1
libavcodec/celp_math.h View File

@@ -71,7 +71,7 @@ static inline int bidir_sal(int value, int offset)
*
* @return dot product = sum of elementwise products
*/
int ff_dot_product(const int16_t *a, const int16_t *b, int length);
int64_t ff_dot_product(const int16_t *a, const int16_t *b, int length);

/**
* returns the dot product.


Loading…
Cancel
Save