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
0e68e8c9
Commit
0e68e8c9
authored
Oct 11, 2019
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_w3fdif: deny processing small videos
Fixes #8243
parent
0b567238
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
vf_w3fdif.c
libavfilter/vf_w3fdif.c
+5
-0
No files found.
libavfilter/vf_w3fdif.c
View file @
0e68e8c9
...
...
@@ -274,6 +274,11 @@ static int config_input(AVFilterLink *inlink)
s
->
planeheight
[
1
]
=
s
->
planeheight
[
2
]
=
AV_CEIL_RSHIFT
(
inlink
->
h
,
desc
->
log2_chroma_h
);
s
->
planeheight
[
0
]
=
s
->
planeheight
[
3
]
=
inlink
->
h
;
if
(
inlink
->
h
<
3
)
{
av_log
(
ctx
,
AV_LOG_ERROR
,
"Video of less than 3 lines is not supported
\n
"
);
return
AVERROR
(
EINVAL
);
}
s
->
nb_planes
=
av_pix_fmt_count_planes
(
inlink
->
format
);
s
->
nb_threads
=
ff_filter_get_nb_threads
(
ctx
);
s
->
work_line
=
av_calloc
(
s
->
nb_threads
,
sizeof
(
*
s
->
work_line
));
...
...
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