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
ff6d9cc5
Commit
ff6d9cc5
authored
Nov 26, 2011
by
Mans Rullgard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
snow: fix signed overflow in byte to 32-bit replication
Signed-off-by:
Mans Rullgard
<
mans@mansr.com
>
parent
9d2dd356
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
snow.c
libavcodec/snow.c
+2
-2
No files found.
libavcodec/snow.c
View file @
ff6d9cc5
...
@@ -290,8 +290,8 @@ static void mc_block(Plane *p, uint8_t *dst, const uint8_t *src, int stride, int
...
@@ -290,8 +290,8 @@ static void mc_block(Plane *p, uint8_t *dst, const uint8_t *src, int stride, int
void
ff_snow_pred_block
(
SnowContext
*
s
,
uint8_t
*
dst
,
uint8_t
*
tmp
,
int
stride
,
int
sx
,
int
sy
,
int
b_w
,
int
b_h
,
BlockNode
*
block
,
int
plane_index
,
int
w
,
int
h
){
void
ff_snow_pred_block
(
SnowContext
*
s
,
uint8_t
*
dst
,
uint8_t
*
tmp
,
int
stride
,
int
sx
,
int
sy
,
int
b_w
,
int
b_h
,
BlockNode
*
block
,
int
plane_index
,
int
w
,
int
h
){
if
(
block
->
type
&
BLOCK_INTRA
){
if
(
block
->
type
&
BLOCK_INTRA
){
int
x
,
y
;
int
x
,
y
;
const
int
color
=
block
->
color
[
plane_index
];
const
unsigned
color
=
block
->
color
[
plane_index
];
const
int
color4
=
color
*
0x01010101
;
const
unsigned
color4
=
color
*
0x01010101
;
if
(
b_w
==
32
){
if
(
b_w
==
32
){
for
(
y
=
0
;
y
<
b_h
;
y
++
){
for
(
y
=
0
;
y
<
b_h
;
y
++
){
*
(
uint32_t
*
)
&
dst
[
0
+
y
*
stride
]
=
color4
;
*
(
uint32_t
*
)
&
dst
[
0
+
y
*
stride
]
=
color4
;
...
...
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