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
23578226
Commit
23578226
authored
Feb 16, 2015
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/me_cmp: add () to protect avg*s arguments
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
17a62cbc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
me_cmp.c
libavcodec/me_cmp.c
+2
-2
No files found.
libavcodec/me_cmp.c
View file @
23578226
...
...
@@ -108,8 +108,8 @@ static int sum_abs_dctelem_c(int16_t *block)
return
sum
;
}
#define avg2(a, b) ((
a + b
+ 1) >> 1)
#define avg4(a, b, c, d) ((
a + b + c + d
+ 2) >> 2)
#define avg2(a, b) ((
(a) + (b)
+ 1) >> 1)
#define avg4(a, b, c, d) ((
(a) + (b) + (c) + (d)
+ 2) >> 2)
static
inline
int
pix_abs16_c
(
MpegEncContext
*
v
,
uint8_t
*
pix1
,
uint8_t
*
pix2
,
ptrdiff_t
stride
,
int
h
)
...
...
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