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
19587c93
Commit
19587c93
authored
Oct 13, 2019
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_lenscorrection: fix division by zero
Fixes #8265
parent
07050d7b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
vf_lenscorrection.c
libavfilter/vf_lenscorrection.c
+2
-4
No files found.
libavfilter/vf_lenscorrection.c
View file @
19587c93
...
...
@@ -155,10 +155,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
for
(
plane
=
0
;
plane
<
rect
->
nb_planes
;
++
plane
)
{
int
hsub
=
plane
==
1
||
plane
==
2
?
rect
->
hsub
:
0
;
int
vsub
=
plane
==
1
||
plane
==
2
?
rect
->
vsub
:
0
;
int
hdiv
=
1
<<
hsub
;
int
vdiv
=
1
<<
vsub
;
int
w
=
rect
->
width
/
hdiv
;
int
h
=
rect
->
height
/
vdiv
;
int
w
=
AV_CEIL_RSHIFT
(
rect
->
width
,
hsub
);
int
h
=
AV_CEIL_RSHIFT
(
rect
->
height
,
vsub
);
int
xcenter
=
rect
->
cx
*
w
;
int
ycenter
=
rect
->
cy
*
h
;
int
k1
=
rect
->
k1
*
(
1
<<
24
);
...
...
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