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
1e35519f
Commit
1e35519f
authored
Oct 16, 2019
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_gblur: fix undefined behaviour
Fixes #8292
parent
c70d5477
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
vf_gblur.c
libavfilter/vf_gblur.c
+4
-1
No files found.
libavfilter/vf_gblur.c
View file @
1e35519f
...
...
@@ -157,6 +157,7 @@ static int filter_postscale(AVFilterContext *ctx, void *arg, int jobnr, int nb_j
{
GBlurContext
*
s
=
ctx
->
priv
;
ThreadData
*
td
=
arg
;
const
float
max
=
(
1
<<
s
->
depth
)
-
1
;
const
int
height
=
td
->
height
;
const
int
width
=
td
->
width
;
const
int64_t
numpixels
=
width
*
(
int64_t
)
height
;
...
...
@@ -166,8 +167,10 @@ static int filter_postscale(AVFilterContext *ctx, void *arg, int jobnr, int nb_j
float
*
buffer
=
s
->
buffer
;
unsigned
i
;
for
(
i
=
slice_start
;
i
<
slice_end
;
i
++
)
for
(
i
=
slice_start
;
i
<
slice_end
;
i
++
)
{
buffer
[
i
]
*=
postscale
;
buffer
[
i
]
=
av_clipf
(
buffer
[
i
],
0
.
f
,
max
);
}
return
0
;
}
...
...
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