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
9d4bdcb7
Commit
9d4bdcb7
authored
Jan 28, 2011
by
Ronald S. Bultje
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix VP8 aliasing problems.
Replace * (uint32_t *) buf accesses with AV_WN32A/AV_COPY32.
parent
f81c7ac7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
vp8.c
libavcodec/vp8.c
+6
-6
No files found.
libavcodec/vp8.c
View file @
9d4bdcb7
...
@@ -1132,9 +1132,9 @@ void intra_predict(VP8Context *s, uint8_t *dst[3], VP8Macroblock *mb,
...
@@ -1132,9 +1132,9 @@ void intra_predict(VP8Context *s, uint8_t *dst[3], VP8Macroblock *mb,
linesize
=
8
;
linesize
=
8
;
if
(
!
(
mb_y
+
y
))
{
if
(
!
(
mb_y
+
y
))
{
copy_dst
[
3
]
=
127U
;
copy_dst
[
3
]
=
127U
;
*
(
uint32_t
*
)
(
copy_dst
+
4
)
=
127U
*
0x01010101U
;
AV_WN32A
(
copy_dst
+
4
,
127U
*
0x01010101U
)
;
}
else
{
}
else
{
*
(
uint32_t
*
)
(
copy_dst
+
4
)
=
*
(
uint32_t
*
)
(
ptr
+
4
*
x
-
s
->
linesize
);
AV_COPY32
(
copy_dst
+
4
,
ptr
+
4
*
x
-
s
->
linesize
);
if
(
!
(
mb_x
+
x
))
{
if
(
!
(
mb_x
+
x
))
{
copy_dst
[
3
]
=
129U
;
copy_dst
[
3
]
=
129U
;
}
else
{
}
else
{
...
@@ -1158,10 +1158,10 @@ void intra_predict(VP8Context *s, uint8_t *dst[3], VP8Macroblock *mb,
...
@@ -1158,10 +1158,10 @@ void intra_predict(VP8Context *s, uint8_t *dst[3], VP8Macroblock *mb,
}
}
s
->
hpc
.
pred4x4
[
mode
](
dst
,
topright
,
linesize
);
s
->
hpc
.
pred4x4
[
mode
](
dst
,
topright
,
linesize
);
if
(
copy
)
{
if
(
copy
)
{
*
(
uint32_t
*
)
(
ptr
+
4
*
x
)
=
*
(
uint32_t
*
)
(
copy_dst
+
12
);
AV_COPY32
(
ptr
+
4
*
x
,
copy_dst
+
12
);
*
(
uint32_t
*
)
(
ptr
+
4
*
x
+
s
->
linesize
)
=
*
(
uint32_t
*
)
(
copy_dst
+
20
);
AV_COPY32
(
ptr
+
4
*
x
+
s
->
linesize
,
copy_dst
+
20
);
*
(
uint32_t
*
)
(
ptr
+
4
*
x
+
s
->
linesize
*
2
)
=
*
(
uint32_t
*
)
(
copy_dst
+
28
);
AV_COPY32
(
ptr
+
4
*
x
+
s
->
linesize
*
2
,
copy_dst
+
28
);
*
(
uint32_t
*
)
(
ptr
+
4
*
x
+
s
->
linesize
*
3
)
=
*
(
uint32_t
*
)
(
copy_dst
+
36
);
AV_COPY32
(
ptr
+
4
*
x
+
s
->
linesize
*
3
,
copy_dst
+
36
);
}
}
nnz
=
s
->
non_zero_count_cache
[
y
][
x
];
nnz
=
s
->
non_zero_count_cache
[
y
][
x
];
...
...
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