mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-04-24 17:12:34 +02:00
rescale_rms() should use unsigned ints
Originally committed as revision 13927 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
536ee17499
commit
56a6fac89b
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user