Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
68416e4b
Commit
68416e4b
authored
Feb 08, 2020
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_maskedclamp: make C version consistent with ASM one
In case of undefined behaviour.
parent
3b860bfd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
vf_maskedclamp.c
libavfilter/vf_maskedclamp.c
+2
-6
No files found.
libavfilter/vf_maskedclamp.c
View file @
68416e4b
...
@@ -178,12 +178,8 @@ static void maskedclamp##name(const uint8_t *bbsrc, uint8_t *ddst,
...
@@ -178,12 +178,8 @@ static void maskedclamp##name(const uint8_t *bbsrc, uint8_t *ddst,
type *dst = (type *)ddst; \
type *dst = (type *)ddst; \
\
\
for (int x = 0; x < w; x++) { \
for (int x = 0; x < w; x++) { \
if (bsrc[x] < darksrc[x] - undershoot) \
dst[x] = FFMAX(bsrc[x], darksrc[x] - undershoot); \
dst[x] = darksrc[x] - undershoot; \
dst[x] = FFMIN(dst[x], brightsrc[x] + overshoot); \
else if (bsrc[x] > brightsrc[x] + overshoot) \
dst[x] = brightsrc[x] + overshoot; \
else \
dst[x] = bsrc[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