From 56a6fac89b5f53e563fad7bbe8922e9c47b7f680 Mon Sep 17 00:00:00 2001 From: Vitor Sessak Date: Mon, 23 Jun 2008 20:37:53 +0000 Subject: [PATCH] rescale_rms() should use unsigned ints Originally committed as revision 13927 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/ra144.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/ra144.c b/libavcodec/ra144.c index 4ab1e4bf5b..4f2b21a51f 100644 --- a/libavcodec/ra144.c +++ b/libavcodec/ra144.c @@ -171,7 +171,7 @@ static void lpc_filter(const int16_t *lpc_coefs, uint16_t *in, int len) } } -static unsigned int rescale_rms(int rms, int energy) +static unsigned int rescale_rms(unsigned int rms, unsigned int energy) { return (rms * energy) >> 10; }