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
dcf1cf5d
Commit
dcf1cf5d
authored
Nov 08, 2015
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/aacsbr: Use FLOAT_0
Signed-off-by:
Michael Niedermayer
<
michael@niedermayer.cc
>
parent
a66b243d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
aacsbr_fixed.c
libavcodec/aacsbr_fixed.c
+1
-1
aacsbr_template.c
libavcodec/aacsbr_template.c
+1
-1
No files found.
libavcodec/aacsbr_fixed.c
View file @
dcf1cf5d
...
...
@@ -397,7 +397,7 @@ static void sbr_gain_calc(AACContext *ac, SpectralBandReplication *sbr,
int
delta
=
!
((
e
==
e_a
[
1
])
||
(
e
==
e_a
[
0
]));
for
(
k
=
0
;
k
<
sbr
->
n_lim
;
k
++
)
{
SoftFloat
gain_boost
,
gain_max
;
SoftFloat
sum
[
2
]
=
{
{
0
,
0
},
{
0
,
0
}
};
SoftFloat
sum
[
2
]
=
{
FLOAT_0
,
FLOAT_0
};
for
(
m
=
sbr
->
f_tablelim
[
k
]
-
sbr
->
kx
[
1
];
m
<
sbr
->
f_tablelim
[
k
+
1
]
-
sbr
->
kx
[
1
];
m
++
)
{
const
SoftFloat
temp
=
av_div_sf
(
sbr
->
e_origmapped
[
e
][
m
],
av_add_sf
(
FLOAT_1
,
sbr
->
q_mapped
[
e
][
m
]));
...
...
libavcodec/aacsbr_template.c
View file @
dcf1cf5d
...
...
@@ -1414,7 +1414,7 @@ static void sbr_env_estimate(AAC_FLOAT (*e_curr)[48], INTFLOAT X_high[64][40][2]
for
(
p
=
0
;
p
<
sbr
->
n
[
ch_data
->
bs_freq_res
[
e
+
1
]];
p
++
)
{
#if USE_FIXED
SoftFloat
sum
=
{
0
,
0
}
;
SoftFloat
sum
=
FLOAT_0
;
const
SoftFloat
den
=
av_int2sf
(
0x20000000
/
(
env_size
*
(
table
[
p
+
1
]
-
table
[
p
])),
29
);
for
(
k
=
table
[
p
];
k
<
table
[
p
+
1
];
k
++
)
{
sum
=
av_add_sf
(
sum
,
sbr
->
dsp
.
sum_square
(
X_high
[
k
]
+
ilb
,
iub
-
ilb
));
...
...
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