projects
/
platform
/
upstream
/
flac.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
59f4a99
)
minor change
author
Josh Coalson
<jcoalson@users.sourceforce.net>
Sun, 1 Apr 2001 05:55:21 +0000
(
05:55
+0000)
committer
Josh Coalson
<jcoalson@users.sourceforce.net>
Sun, 1 Apr 2001 05:55:21 +0000
(
05:55
+0000)
src/libFLAC/lpc.c
patch
|
blob
|
history
diff --git
a/src/libFLAC/lpc.c
b/src/libFLAC/lpc.c
index
3393a5a
..
d15680e
100644
(file)
--- a/
src/libFLAC/lpc.c
+++ b/
src/libFLAC/lpc.c
@@
-109,7
+109,7
@@
int FLAC__lpc_quantize_coefficients(const real lp_coeff[], unsigned order, unsig
return 2;
}
else {
- const int maxshift = (int)precision - floor(log(cmax) / M_LN2) - 1;
+ const int maxshift = (int)precision -
(int)
floor(log(cmax) / M_LN2) - 1;
const int max_shiftlimit = (1 << (FLAC__SUBFRAME_LPC_QLP_SHIFT_LEN-1)) - 1;
const int min_shiftlimit = -max_shiftlimit - 1;