Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
flac
Commits
67e5d6d4
Commit
67e5d6d4
authored
Feb 03, 2007
by
Josh Coalson
Browse files
minor syntax
parent
469ba749
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/libFLAC/lpc.c
View file @
67e5d6d4
...
@@ -187,7 +187,7 @@ int FLAC__lpc_quantize_coefficients(const FLAC__real lp_coeff[], unsigned order,
...
@@ -187,7 +187,7 @@ int FLAC__lpc_quantize_coefficients(const FLAC__real lp_coeff[], unsigned order,
if
(
*
shift
<
min_shiftlimit
||
*
shift
>
max_shiftlimit
)
{
if
(
*
shift
<
min_shiftlimit
||
*
shift
>
max_shiftlimit
)
{
#ifdef FLAC__OVERFLOW_DETECT
#ifdef FLAC__OVERFLOW_DETECT
fprintf
(
stderr
,
"FLAC__lpc_quantize_coefficients: shift out of limit: shift=%d cmax=%f precision=%u
\n
"
,
q
,
qmax
,
*
shift
,
cmax
,
precision
+
1
);
fprintf
(
stderr
,
"FLAC__lpc_quantize_coefficients: shift out of limit: shift=%d cmax=%f precision=%u
\n
"
,
*
shift
,
cmax
,
precision
+
1
);
#endif
#endif
#if 0
#if 0
/*@@@ this does not seem to help at all, but was not extensively tested either: */
/*@@@ this does not seem to help at all, but was not extensively tested either: */
...
@@ -228,7 +228,7 @@ int FLAC__lpc_quantize_coefficients(const FLAC__real lp_coeff[], unsigned order,
...
@@ -228,7 +228,7 @@ int FLAC__lpc_quantize_coefficients(const FLAC__real lp_coeff[], unsigned order,
FLAC__double
error
=
0
.
0
;
FLAC__double
error
=
0
.
0
;
FLAC__int32
q
;
FLAC__int32
q
;
#ifdef DEBUG
#ifdef DEBUG
fprintf
(
stderr
,
"FLAC__lpc_quantize_coefficients: negative shift
= %d
\n
"
,
*
shift
);
fprintf
(
stderr
,
"FLAC__lpc_quantize_coefficients: negative shift
=%d order=%u cmax=%f
\n
"
,
*
shift
,
order
,
cmax
);
#endif
#endif
for
(
i
=
0
;
i
<
order
;
i
++
)
{
for
(
i
=
0
;
i
<
order
;
i
++
)
{
error
+=
lp_coeff
[
i
]
/
(
1
<<
nshift
);
error
+=
lp_coeff
[
i
]
/
(
1
<<
nshift
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment