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
62549f96
Commit
62549f96
authored
Apr 03, 2013
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi: error out when options are provided to a filter that does not take any
parent
c43a7eca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
avfilter.c
libavfilter/avfilter.c
+7
-1
No files found.
libavfilter/avfilter.c
View file @
62549f96
...
...
@@ -480,7 +480,13 @@ int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque
AVDictionaryEntry
*
e
;
int
ret
=
0
;
if
(
args
&&
*
args
&&
filter
->
filter
->
priv_class
)
{
if
(
args
&&
*
args
)
{
if
(
!
filter
->
filter
->
priv_class
)
{
av_log
(
filter
,
AV_LOG_ERROR
,
"This filter does not take any "
"options, but options were provided: %s.
\n
"
,
args
);
return
AVERROR
(
EINVAL
);
}
#if FF_API_OLD_FILTER_OPTS
if
(
!
strcmp
(
filter
->
filter
->
name
,
"scale"
)
&&
strchr
(
args
,
':'
)
<
strchr
(
args
,
'='
))
{
...
...
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