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
f6dd1455
Commit
f6dd1455
authored
Nov 28, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter: check that filter_frame and slice variants are not both used
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
cd7febd3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
avfilter.c
libavfilter/avfilter.c
+8
-0
No files found.
libavfilter/avfilter.c
View file @
f6dd1455
...
...
@@ -409,6 +409,8 @@ AVFilter *avfilter_get_by_name(const char *name)
int
avfilter_register
(
AVFilter
*
filter
)
{
int
i
;
if
(
next_registered_avfilter_idx
==
MAX_REGISTERED_AVFILTERS_NB
)
{
av_log
(
NULL
,
AV_LOG_ERROR
,
"Maximum number of registered filters %d reached, "
...
...
@@ -417,6 +419,12 @@ int avfilter_register(AVFilter *filter)
return
AVERROR
(
ENOMEM
);
}
for
(
i
=
0
;
filter
->
inputs
&&
filter
->
inputs
[
i
].
name
;
i
++
)
{
const
AVFilterPad
*
input
=
&
filter
->
inputs
[
i
];
av_assert0
(
!
input
->
filter_frame
||
(
!
input
->
start_frame
&&
!
input
->
end_frame
&&
!
input
->
draw_slice
));
}
registered_avfilters
[
next_registered_avfilter_idx
++
]
=
filter
;
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