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
f44ad92c
Commit
f44ad92c
authored
Oct 31, 2011
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sws: print a warning on unaligned input on SSE2+
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
fbf4b390
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
swscale.c
libswscale/swscale.c
+12
-0
No files found.
libswscale/swscale.c
View file @
f44ad92c
...
...
@@ -2539,6 +2539,18 @@ static int swScale(SwsContext *c, const uint8_t* src[],
}
}
if
((
int
)
dst
[
0
]
%
16
||
(
int
)
dst
[
1
]
%
16
||
(
int
)
dst
[
2
]
%
16
||
(
int
)
src
[
0
]
%
16
||
(
int
)
src
[
1
]
%
16
||
(
int
)
src
[
2
]
%
16
||
dstStride
[
0
]
%
16
||
dstStride
[
1
]
%
16
||
dstStride
[
2
]
%
16
||
dstStride
[
3
]
%
16
||
srcStride
[
0
]
%
16
||
srcStride
[
1
]
%
16
||
srcStride
[
2
]
%
16
||
srcStride
[
3
]
%
16
)
{
static
int
warnedAlready
=
0
;
int
cpu_flags
=
av_get_cpu_flags
();
if
(
HAVE_MMX2
&&
(
cpu_flags
&
AV_CPU_FLAG_SSE2
)
&&
!
warnedAlready
){
av_log
(
c
,
AV_LOG_WARNING
,
"Warning: data is not aligned! This can lead to a speedloss
\n
"
);
warnedAlready
=
1
;
}
}
/* Note the user might start scaling the picture in the middle so this
will not get executed. This is not really intended but works
currently, so people might do it. */
...
...
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