Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
e5d66497
Commit
e5d66497
authored
Oct 11, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec: fix unaligned USWC copy (fixes #6333)
(cherry picked from commit 39dc439cf5e3fe83b87078bcf93c13d07fd02dac)
parent
931b79ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
modules/codec/avcodec/copy.c
modules/codec/avcodec/copy.c
+3
-3
No files found.
modules/codec/avcodec/copy.c
View file @
e5d66497
...
@@ -70,10 +70,10 @@ static void CopyFromUswc(uint8_t *dst, size_t dst_pitch,
...
@@ -70,10 +70,10 @@ static void CopyFromUswc(uint8_t *dst, size_t dst_pitch,
ASM_SSE2
(
cpu
,
"mfence"
);
ASM_SSE2
(
cpu
,
"mfence"
);
for
(
unsigned
y
=
0
;
y
<
height
;
y
++
)
{
for
(
unsigned
y
=
0
;
y
<
height
;
y
++
)
{
const
unsigned
unaligned
=
(
intptr_t
)
src
&
0x0f
;
const
unsigned
unaligned
=
(
-
(
uintptr_t
)
src
)
&
0x0f
;
unsigned
x
;
unsigned
x
=
0
;
for
(
x
=
0
;
x
<
unaligned
;
x
++
)
for
(;
x
<
unaligned
;
x
++
)
dst
[
x
]
=
src
[
x
];
dst
[
x
]
=
src
[
x
];
#ifdef CAN_COMPILE_SSE4_1
#ifdef CAN_COMPILE_SSE4_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