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
6381f913
Commit
6381f913
authored
Jan 07, 2012
by
Nathan Caldwell
Committed by
Alex Converse
Jan 23, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aacpsy: Replace an if with FFMAX in LAME windowing.
Signed-off-by:
Alex Converse
<
alex.converse@gmail.com
>
parent
207bf44d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
aacpsy.c
libavcodec/aacpsy.c
+1
-2
No files found.
libavcodec/aacpsy.c
View file @
6381f913
...
...
@@ -823,8 +823,7 @@ static FFPsyWindowInfo psy_lame_window(FFPsyContext *ctx,
float
const
*
const
pfe
=
pf
+
AAC_BLOCK_SIZE_LONG
/
(
AAC_NUM_BLOCKS_SHORT
*
PSY_LAME_NUM_SUBBLOCKS
);
float
p
=
1
.
0
f
;
for
(;
pf
<
pfe
;
pf
++
)
if
(
p
<
fabsf
(
*
pf
))
p
=
fabsf
(
*
pf
);
p
=
FFMAX
(
p
,
fabsf
(
*
pf
));
pch
->
prev_energy_subshort
[
i
]
=
energy_subshort
[
i
+
PSY_LAME_NUM_SUBBLOCKS
]
=
p
;
energy_short
[
1
+
i
/
PSY_LAME_NUM_SUBBLOCKS
]
+=
p
;
/* NOTE: The indexes below are [i + 3 - 2] in the LAME source.
...
...
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