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
6b1df554
Commit
6b1df554
authored
Aug 06, 2014
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avutil/cpu: check av_parse_cpu_caps() table during cpu-test
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
fe0157a1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
cpu.c
libavutil/cpu.c
+9
-0
No files found.
libavutil/cpu.c
View file @
6b1df554
...
...
@@ -350,6 +350,15 @@ int main(int argc, char **argv)
int
cpu_flags_eff
;
int
cpu_count
=
av_cpu_count
();
char
threads
[
5
]
=
"auto"
;
int
i
;
for
(
i
=
0
;
cpu_flag_tab
[
i
].
flag
;
i
++
)
{
unsigned
tmp
=
0
;
if
(
av_parse_cpu_caps
(
&
tmp
,
cpu_flag_tab
[
i
].
name
)
<
0
)
{
fprintf
(
stderr
,
"Table missing %s
\n
"
,
cpu_flag_tab
[
i
].
name
);
return
4
;
}
}
if
(
cpu_flags_raw
<
0
)
return
1
;
...
...
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