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
0b567238
Commit
0b567238
authored
Oct 11, 2019
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_bitplanenoise: fix overreads
Fixes #8244
parent
b62f7e24
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
vf_bitplanenoise.c
libavfilter/vf_bitplanenoise.c
+2
-2
No files found.
libavfilter/vf_bitplanenoise.c
View file @
0b567238
...
@@ -122,7 +122,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
...
@@ -122,7 +122,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
if
(
s
->
depth
<=
8
)
{
if
(
s
->
depth
<=
8
)
{
for
(
plane
=
0
;
plane
<
s
->
nb_planes
;
plane
++
)
{
for
(
plane
=
0
;
plane
<
s
->
nb_planes
;
plane
++
)
{
const
int
linesize
=
in
->
linesize
[
plane
]
;
const
int
linesize
=
s
->
planeheight
[
plane
]
>
1
?
in
->
linesize
[
plane
]
:
0
;
const
int
dlinesize
=
out
->
linesize
[
plane
];
const
int
dlinesize
=
out
->
linesize
[
plane
];
uint8_t
*
val
=
in
->
data
[
plane
];
uint8_t
*
val
=
in
->
data
[
plane
];
uint8_t
*
dst
=
s
->
filter
?
out
->
data
[
plane
]
:
NULL
;
uint8_t
*
dst
=
s
->
filter
?
out
->
data
[
plane
]
:
NULL
;
...
@@ -151,7 +151,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
...
@@ -151,7 +151,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
}
}
}
else
{
}
else
{
for
(
plane
=
0
;
plane
<
s
->
nb_planes
;
plane
++
)
{
for
(
plane
=
0
;
plane
<
s
->
nb_planes
;
plane
++
)
{
const
int
linesize
=
in
->
linesize
[
plane
]
/
2
;
const
int
linesize
=
s
->
planeheight
[
plane
]
>
1
?
in
->
linesize
[
plane
]
/
2
:
0
;
const
int
dlinesize
=
out
->
linesize
[
plane
]
/
2
;
const
int
dlinesize
=
out
->
linesize
[
plane
]
/
2
;
uint16_t
*
val
=
(
uint16_t
*
)
in
->
data
[
plane
];
uint16_t
*
val
=
(
uint16_t
*
)
in
->
data
[
plane
];
uint16_t
*
dst
=
s
->
filter
?
(
uint16_t
*
)
out
->
data
[
plane
]
:
NULL
;
uint16_t
*
dst
=
s
->
filter
?
(
uint16_t
*
)
out
->
data
[
plane
]
:
NULL
;
...
...
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