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
f668afd4
Commit
f668afd4
authored
Apr 15, 2011
by
Janne Grunau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swscale: fix "ISO C90 forbids mixed declarations and code" warning
only hit with --enable-runtime-cpudetect
parent
7f2ae5c7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
swscale.c
libswscale/swscale.c
+4
-6
No files found.
libswscale/swscale.c
View file @
f668afd4
...
@@ -1198,24 +1198,22 @@ SwsFunc ff_getSwsFunc(SwsContext *c)
...
@@ -1198,24 +1198,22 @@ SwsFunc ff_getSwsFunc(SwsContext *c)
sws_init_swScale_c
(
c
);
sws_init_swScale_c
(
c
);
#if CONFIG_RUNTIME_CPUDETECT
#if CONFIG_RUNTIME_CPUDETECT
int
flags
=
c
->
flags
;
#if ARCH_X86
#if ARCH_X86
// ordered per speed fastest first
// ordered per speed fastest first
if
(
flags
&
SWS_CPU_CAPS_MMX2
)
{
if
(
c
->
flags
&
SWS_CPU_CAPS_MMX2
)
{
sws_init_swScale_MMX2
(
c
);
sws_init_swScale_MMX2
(
c
);
return
swScale_MMX2
;
return
swScale_MMX2
;
}
else
if
(
flags
&
SWS_CPU_CAPS_3DNOW
)
{
}
else
if
(
c
->
flags
&
SWS_CPU_CAPS_3DNOW
)
{
sws_init_swScale_3DNow
(
c
);
sws_init_swScale_3DNow
(
c
);
return
swScale_3DNow
;
return
swScale_3DNow
;
}
else
if
(
flags
&
SWS_CPU_CAPS_MMX
)
{
}
else
if
(
c
->
flags
&
SWS_CPU_CAPS_MMX
)
{
sws_init_swScale_MMX
(
c
);
sws_init_swScale_MMX
(
c
);
return
swScale_MMX
;
return
swScale_MMX
;
}
}
#else
#else
#if COMPILE_ALTIVEC
#if COMPILE_ALTIVEC
if
(
flags
&
SWS_CPU_CAPS_ALTIVEC
)
{
if
(
c
->
flags
&
SWS_CPU_CAPS_ALTIVEC
)
{
sws_init_swScale_altivec
(
c
);
sws_init_swScale_altivec
(
c
);
return
swScale_altivec
;
return
swScale_altivec
;
}
}
...
...
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