Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
c57fe49d
Commit
c57fe49d
authored
Feb 09, 2012
by
Janne Grunau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eac3dec: replace undefined 1<<31 with INT32_MIN in noise generation
parent
456d3e4f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
eac3dec.c
libavcodec/eac3dec.c
+1
-1
No files found.
libavcodec/eac3dec.c
View file @
c57fe49d
...
...
@@ -140,7 +140,7 @@ void ff_eac3_apply_spectral_extension(AC3DecodeContext *s)
each band. */
bin
=
s
->
spx_src_start_freq
;
for
(
bnd
=
0
;
bnd
<
s
->
num_spx_bands
;
bnd
++
)
{
float
nscale
=
s
->
spx_noise_blend
[
ch
][
bnd
]
*
rms_energy
[
bnd
]
*
(
1
.
0
f
/
(
1
<<
31
)
);
float
nscale
=
s
->
spx_noise_blend
[
ch
][
bnd
]
*
rms_energy
[
bnd
]
*
(
1
.
0
f
/
INT32_MIN
);
float
sscale
=
s
->
spx_signal_blend
[
ch
][
bnd
];
for
(
i
=
0
;
i
<
s
->
spx_band_sizes
[
bnd
];
i
++
)
{
float
noise
=
nscale
*
(
int32_t
)
av_lfg_get
(
&
s
->
dith_state
);
...
...
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