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
34763c15
Commit
34763c15
authored
Aug 15, 2001
by
Fabrice Bellard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
renamed log2 to av_log2
Originally committed as revision 96 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
67e9bb0d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ac3enc.c
libavcodec/ac3enc.c
+2
-2
No files found.
libavcodec/ac3enc.c
View file @
34763c15
...
...
@@ -1195,7 +1195,7 @@ static int log2_tab(INT16 *tab, int n)
for
(
i
=
0
;
i
<
n
;
i
++
)
{
v
|=
abs
(
tab
[
i
]);
}
return
log2
(
v
);
return
av_
log2
(
v
);
}
static
void
lshift_tab
(
INT16
*
tab
,
int
n
,
int
lshift
)
...
...
@@ -1307,7 +1307,7 @@ int AC3_encode_frame(AVCodecContext *avctx,
if
(
v
==
0
)
e
=
24
;
else
{
e
=
23
-
log2
(
v
)
+
exp_samples
[
i
][
ch
];
e
=
23
-
av_
log2
(
v
)
+
exp_samples
[
i
][
ch
];
if
(
e
>=
24
)
{
e
=
24
;
mdct_coef
[
i
][
ch
][
j
]
=
0
;
...
...
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