rescale_rms() should use unsigned ints
authorVitor Sessak <vitor1001@gmail.com>
Mon, 23 Jun 2008 20:37:53 +0000 (20:37 +0000)
committerVitor Sessak <vitor1001@gmail.com>
Mon, 23 Jun 2008 20:37:53 +0000 (20:37 +0000)
Originally committed as revision 13927 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/ra144.c

index 4ab1e4bf5beacad24098df70b529d7f387750679..4f2b21a51ff45348cf3c65cb9f6cfcc7ca12c185 100644 (file)
@@ -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;
 }