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
3596de55
Commit
3596de55
authored
Jun 09, 2012
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
audioconvert: use av_popcount64 in av_get_channel_layout_nb_channels
parent
d7d071a6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
audioconvert.c
libavutil/audioconvert.c
+1
-5
No files found.
libavutil/audioconvert.c
View file @
3596de55
...
@@ -175,11 +175,7 @@ void av_get_channel_layout_string(char *buf, int buf_size,
...
@@ -175,11 +175,7 @@ void av_get_channel_layout_string(char *buf, int buf_size,
int
av_get_channel_layout_nb_channels
(
uint64_t
channel_layout
)
int
av_get_channel_layout_nb_channels
(
uint64_t
channel_layout
)
{
{
int
count
;
return
av_popcount64
(
channel_layout
);
uint64_t
x
=
channel_layout
;
for
(
count
=
0
;
x
;
count
++
)
x
&=
x
-
1
;
// unset lowest set bit
return
count
;
}
}
uint64_t
av_get_default_channel_layout
(
int
nb_channels
)
uint64_t
av_get_default_channel_layout
(
int
nb_channels
)
...
...
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