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
be5830ea
Commit
be5830ea
authored
Sep 27, 2009
by
Justin Ruggles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unneeded variable
Originally committed as revision 20037 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
b05e4195
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
ac3.c
libavcodec/ac3.c
+2
-3
No files found.
libavcodec/ac3.c
View file @
be5830ea
...
@@ -98,7 +98,7 @@ static inline int calc_lowcomp(int a, int b0, int b1, int bin)
...
@@ -98,7 +98,7 @@ static inline int calc_lowcomp(int a, int b0, int b1, int bin)
void
ff_ac3_bit_alloc_calc_psd
(
int8_t
*
exp
,
int
start
,
int
end
,
int16_t
*
psd
,
void
ff_ac3_bit_alloc_calc_psd
(
int8_t
*
exp
,
int
start
,
int
end
,
int16_t
*
psd
,
int16_t
*
band_psd
)
int16_t
*
band_psd
)
{
{
int
bin
,
i
,
j
,
k
,
end1
,
v
;
int
bin
,
j
,
k
,
end1
,
v
;
/* exponent mapping to PSD */
/* exponent mapping to PSD */
for
(
bin
=
start
;
bin
<
end
;
bin
++
)
{
for
(
bin
=
start
;
bin
<
end
;
bin
++
)
{
...
@@ -112,11 +112,10 @@ void ff_ac3_bit_alloc_calc_psd(int8_t *exp, int start, int end, int16_t *psd,
...
@@ -112,11 +112,10 @@ void ff_ac3_bit_alloc_calc_psd(int8_t *exp, int start, int end, int16_t *psd,
v
=
psd
[
j
];
v
=
psd
[
j
];
j
++
;
j
++
;
end1
=
FFMIN
(
band_start_tab
[
k
+
1
],
end
);
end1
=
FFMIN
(
band_start_tab
[
k
+
1
],
end
);
for
(
i
=
j
;
i
<
end1
;
i
++
)
{
for
(;
j
<
end1
;
j
++
)
{
/* logadd */
/* logadd */
int
adr
=
FFMIN
(
FFABS
(
v
-
psd
[
j
])
>>
1
,
255
);
int
adr
=
FFMIN
(
FFABS
(
v
-
psd
[
j
])
>>
1
,
255
);
v
=
FFMAX
(
v
,
psd
[
j
])
+
ff_ac3_log_add_tab
[
adr
];
v
=
FFMAX
(
v
,
psd
[
j
])
+
ff_ac3_log_add_tab
[
adr
];
j
++
;
}
}
band_psd
[
k
]
=
v
;
band_psd
[
k
]
=
v
;
k
++
;
k
++
;
...
...
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