projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
536ee17
)
rescale_rms() should use unsigned ints
author
Vitor Sessak
<vitor1001@gmail.com>
Mon, 23 Jun 2008 20:37:53 +0000
(20:37 +0000)
committer
Vitor 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
patch
|
blob
|
history
diff --git
a/libavcodec/ra144.c
b/libavcodec/ra144.c
index 4ab1e4bf5beacad24098df70b529d7f387750679..4f2b21a51ff45348cf3c65cb9f6cfcc7ca12c185 100644
(file)
--- 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;
}