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
9069b7d3
Commit
9069b7d3
authored
May 25, 2010
by
Alex Converse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix declaration after statement
Originally committed as revision 23331 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
37dd2356
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
aaccoder.c
libavcodec/aaccoder.c
+2
-1
No files found.
libavcodec/aaccoder.c
View file @
9069b7d3
...
...
@@ -566,13 +566,14 @@ static void search_for_quantizers_anmr(AVCodecContext *avctx, AACEncContext *s,
if
(
nz
)
{
int
minscale
,
maxscale
;
float
minrd
=
INFINITY
;
float
maxval
;
//minimum scalefactor index is when minimum nonzero coefficient after quantizing is not clipped
minscale
=
av_clip_uint8
(
log2
(
qmin
)
*
4
-
69
+
SCALE_ONE_POS
-
SCALE_DIV_512
);
//maximum scalefactor index is when maximum coefficient after quantizing is still not zero
maxscale
=
av_clip_uint8
(
log2
(
qmax
)
*
4
+
6
+
SCALE_ONE_POS
-
SCALE_DIV_512
);
minscale
=
av_clip
(
minscale
-
q0
,
0
,
TRELLIS_STATES
-
1
);
maxscale
=
av_clip
(
maxscale
-
q0
,
0
,
TRELLIS_STATES
);
float
maxval
=
find_max_val
(
sce
->
ics
.
group_len
[
w
],
sce
->
ics
.
swb_sizes
[
g
],
s
->
scoefs
+
start
);
maxval
=
find_max_val
(
sce
->
ics
.
group_len
[
w
],
sce
->
ics
.
swb_sizes
[
g
],
s
->
scoefs
+
start
);
for
(
q
=
minscale
;
q
<
maxscale
;
q
++
)
{
float
dist
=
0
;
int
cb
=
find_min_book
(
maxval
,
sce
->
sf_idx
[
w
*
16
+
g
]);
...
...
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