You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-07-16 22:42:38 +02:00
ff_dot_product(): change return value to int64_t
Idea-by: Vitor Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@ -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;
|
||||
|
@ -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.
|
||||
|
Reference in New Issue
Block a user