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
d0da8020
Commit
d0da8020
authored
Jul 18, 2007
by
Vitor Sessak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove reimplementation of av_log2
Originally committed as revision 9735 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
ef0d7a0d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
10 deletions
+2
-10
alac.c
libavcodec/alac.c
+2
-10
No files found.
libavcodec/alac.c
View file @
d0da8020
...
@@ -139,17 +139,9 @@ static int alac_set_info(ALACContext *alac)
...
@@ -139,17 +139,9 @@ static int alac_set_info(ALACContext *alac)
return
0
;
return
0
;
}
}
/* hideously inefficient. could use a bitmask search,
static
inline
int
count_leading_zeros
(
int32_t
input
)
* alternatively bsr on x86,
*/
static
int
count_leading_zeros
(
int32_t
input
)
{
{
int
i
=
0
;
return
31
-
av_log2
(
input
);
while
(
!
(
0x80000000
&
input
)
&&
i
<
32
)
{
i
++
;
input
=
input
<<
1
;
}
return
i
;
}
}
static
void
bastardized_rice_decompress
(
ALACContext
*
alac
,
static
void
bastardized_rice_decompress
(
ALACContext
*
alac
,
...
...
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