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
09e03847
Commit
09e03847
authored
Sep 27, 2009
by
Justin Ruggles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unneeded table lookup.
Originally committed as revision 20050 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
444ce49a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
ac3.c
libavcodec/ac3.c
+1
-1
No files found.
libavcodec/ac3.c
View file @
09e03847
...
...
@@ -228,7 +228,7 @@ void ff_ac3_bit_alloc_calc_bap(int16_t *mask, int16_t *psd, int start, int end,
band
=
bin_to_band_tab
[
start
];
do
{
int
m
=
(
FFMAX
(
mask
[
band
]
-
snr_offset
-
floor
,
0
)
&
0x1FE0
)
+
floor
;
int
band_end
=
FFMIN
(
b
and_start_tab
[
band
]
+
ff_ac3_critical_band_size_tab
[
band
],
end
);
int
band_end
=
FFMIN
(
b
in
+
ff_ac3_critical_band_size_tab
[
band
],
end
);
for
(;
bin
<
band_end
;
bin
++
)
{
int
address
=
av_clip
((
psd
[
bin
]
-
m
)
>>
5
,
0
,
63
);
bap
[
bin
]
=
bap_tab
[
address
];
...
...
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