[FFmpeg-cvslog] ff_dot_product(): change return value to int64_t
Michael Niedermayer
git at videolan.org
Sat Oct 1 23:17:57 CEST 2011
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Oct 1 23:09:48 2011 +0200| [78f08c06e6351e68363cad7158e6ab76246f1367] | committer: Michael Niedermayer
ff_dot_product(): change return value to int64_t
Idea-by: Vitor
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=78f08c06e6351e68363cad7158e6ab76246f1367
---
libavcodec/celp_math.c | 2 +-
libavcodec/celp_math.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavcodec/celp_math.c b/libavcodec/celp_math.c
index a00bb39..d85277f 100644
--- a/libavcodec/celp_math.c
+++ b/libavcodec/celp_math.c
@@ -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;
diff --git a/libavcodec/celp_math.h b/libavcodec/celp_math.h
index 4b08c62..4803245 100644
--- a/libavcodec/celp_math.h
+++ b/libavcodec/celp_math.h
@@ -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.
More information about the ffmpeg-cvslog
mailing list