Commit 8587bd90 authored by vitor's avatar vitor

rescale_rms() should use unsigned ints

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@13927 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 800c7aea
...@@ -171,7 +171,7 @@ static void lpc_filter(const int16_t *lpc_coefs, uint16_t *in, int len) ...@@ -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; return (rms * energy) >> 10;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment