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
be0b4c70
Commit
be0b4c70
authored
Oct 01, 2013
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
atrac3: Replace a silly counter variable name with plain 'j'
parent
451606f7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
atrac3.c
libavcodec/atrac3.c
+5
-5
No files found.
libavcodec/atrac3.c
View file @
be0b4c70
...
...
@@ -417,7 +417,7 @@ static int decode_tonal_components(GetBitContext *gb,
static
int
decode_gain_control
(
GetBitContext
*
gb
,
GainBlock
*
block
,
int
num_bands
)
{
int
i
,
cf
,
num_data
;
int
i
,
j
,
num_data
;
int
*
level
,
*
loc
;
GainInfo
*
gain
=
block
->
g_block
;
...
...
@@ -428,10 +428,10 @@ static int decode_gain_control(GetBitContext *gb, GainBlock *block,
level
=
gain
[
i
].
lev_code
;
loc
=
gain
[
i
].
loc_code
;
for
(
cf
=
0
;
cf
<
gain
[
i
].
num_gain_data
;
cf
++
)
{
level
[
cf
]
=
get_bits
(
gb
,
4
);
loc
[
cf
]
=
get_bits
(
gb
,
5
);
if
(
cf
&&
loc
[
cf
]
<=
loc
[
cf
-
1
])
for
(
j
=
0
;
j
<
gain
[
i
].
num_gain_data
;
j
++
)
{
level
[
j
]
=
get_bits
(
gb
,
4
);
loc
[
j
]
=
get_bits
(
gb
,
5
);
if
(
j
&&
loc
[
j
]
<=
loc
[
j
-
1
])
return
AVERROR_INVALIDDATA
;
}
}
...
...
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