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
1f1ef843
Commit
1f1ef843
authored
Feb 21, 2015
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_perspective: Use av_clip_uint8()
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
6660c598
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
vf_perspective.c
libavfilter/vf_perspective.c
+2
-2
No files found.
libavfilter/vf_perspective.c
View file @
1f1ef843
...
...
@@ -320,7 +320,7 @@ static int resample_cubic(AVFilterContext *ctx, void *arg,
}
sum
=
(
sum
+
(
1
<<
(
COEFF_BITS
*
2
-
1
)))
>>
(
COEFF_BITS
*
2
);
sum
=
av_clip
(
sum
,
0
,
255
);
sum
=
av_clip
_uint8
(
sum
);
dst
[
x
+
y
*
dst_linesize
]
=
sum
;
}
}
...
...
@@ -395,7 +395,7 @@ static int resample_linear(AVFilterContext *ctx, void *arg,
}
}
sum
=
av_clip
(
sum
,
0
,
255
);
sum
=
av_clip
_uint8
(
sum
);
dst
[
x
+
y
*
dst_linesize
]
=
sum
;
}
}
...
...
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