diff options
author | Vitor Sessak <vitor1001@gmail.com> | 2008-06-23 20:37:53 +0000 |
---|---|---|
committer | Vitor Sessak <vitor1001@gmail.com> | 2008-06-23 20:37:53 +0000 |
commit | 56a6fac89b5f53e563fad7bbe8922e9c47b7f680 (patch) | |
tree | 1b29439eee48f6693dc67b890d71a4644d581cc0 /libavcodec | |
parent | 536ee17499aefbb7ca33946c3c15c735d50ac5dd (diff) | |
download | ffmpeg-56a6fac89b5f53e563fad7bbe8922e9c47b7f680.tar.gz |
rescale_rms() should use unsigned ints
Originally committed as revision 13927 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/ra144.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |