Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Mark Harris
Opus
Commits
6d2d5c42
Commit
6d2d5c42
authored
Apr 16, 2014
by
Gregory Maxwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Suppress some coverity false positives.
parent
4ae4bc61
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
celt/celt_encoder.c
celt/celt_encoder.c
+1
-0
celt/kiss_fft.c
celt/kiss_fft.c
+1
-1
No files found.
celt/celt_encoder.c
View file @
6d2d5c42
...
...
@@ -1644,6 +1644,7 @@ int celt_encode_with_ec(CELTEncoder * OPUS_RESTRICT st, const opus_val16 * pcm,
diff
+=
MULT16_16
(
mask
,
1
+
2
*
i
-
mask_end
);
}
}
celt_assert
(
count
>
0
);
mask_avg
=
DIV32_16
(
mask_avg
,
count
);
mask_avg
+=
QCONST16
(.
2
f
,
DB_SHIFT
);
diff
=
diff
*
6
/
(
C
*
(
mask_end
-
1
)
*
(
mask_end
+
1
)
*
mask_end
);
...
...
celt/kiss_fft.c
View file @
6d2d5c42
...
...
@@ -457,7 +457,7 @@ kiss_fft_state *opus_fft_alloc_twiddles(int nfft,void * mem,size_t * lenmem, co
{
st
->
twiddles
=
base
->
twiddles
;
st
->
shift
=
0
;
while
(
nfft
<<
st
->
shift
!=
base
->
nfft
&&
st
->
shift
<
32
)
while
(
st
->
shift
<
32
&&
nfft
<<
st
->
shift
!=
base
->
nfft
)
st
->
shift
++
;
if
(
st
->
shift
>=
32
)
goto
fail
;
...
...
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