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
4978be2b
Commit
4978be2b
authored
Oct 02, 2013
by
Maxim Poliakovski
Committed by
Michael Niedermayer
Oct 02, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
atrac3: rename num_gain_data to num_points
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
dc80e250
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
atrac3.c
libavcodec/atrac3.c
+7
-7
No files found.
libavcodec/atrac3.c
View file @
4978be2b
...
...
@@ -56,7 +56,7 @@
#define MDCT_SIZE 512
typedef
struct
AtracGainInfo
{
int
num_
gain_data
;
int
num_
points
;
int
lev_code
[
8
];
int
loc_code
[
8
];
}
AtracGainInfo
;
...
...
@@ -425,11 +425,11 @@ static int decode_gain_control(GetBitContext *gb, GainBlock *block,
for
(
i
=
0
;
i
<=
num_bands
;
i
++
)
{
num_data
=
get_bits
(
gb
,
3
);
gain
[
i
].
num_
gain_data
=
num_data
;
gain
[
i
].
num_
points
=
num_data
;
level
=
gain
[
i
].
lev_code
;
loc
=
gain
[
i
].
loc_code
;
for
(
cf
=
0
;
cf
<
gain
[
i
].
num_
gain_data
;
cf
++
)
{
for
(
cf
=
0
;
cf
<
gain
[
i
].
num_
points
;
cf
++
)
{
level
[
cf
]
=
get_bits
(
gb
,
4
);
loc
[
cf
]
=
get_bits
(
gb
,
5
);
if
(
cf
&&
loc
[
cf
]
<=
loc
[
cf
-
1
])
...
...
@@ -439,7 +439,7 @@ static int decode_gain_control(GetBitContext *gb, GainBlock *block,
/* Clear the unused blocks. */
for
(;
i
<
4
;
i
++
)
gain
[
i
].
num_
gain_data
=
0
;
gain
[
i
].
num_
points
=
0
;
return
0
;
}
...
...
@@ -461,16 +461,16 @@ static void gain_compensate_and_overlap(float *input, float *prev,
int
i
,
j
,
num_data
,
start_loc
,
end_loc
;
if
(
gain2
->
num_
gain_data
==
0
)
if
(
gain2
->
num_
points
==
0
)
g1
=
1
.
0
;
else
g1
=
gain_tab1
[
gain2
->
lev_code
[
0
]];
if
(
gain1
->
num_
gain_data
==
0
)
{
if
(
gain1
->
num_
points
==
0
)
{
for
(
i
=
0
;
i
<
256
;
i
++
)
output
[
i
]
=
input
[
i
]
*
g1
+
prev
[
i
];
}
else
{
num_data
=
gain1
->
num_
gain_data
;
num_data
=
gain1
->
num_
points
;
gain1
->
loc_code
[
num_data
]
=
32
;
gain1
->
lev_code
[
num_data
]
=
4
;
...
...
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