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
a733481d
Commit
a733481d
authored
Mar 24, 2013
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/field: use standard options parsing.
parent
7edda1a9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
13 deletions
+3
-13
vf_field.c
libavfilter/vf_field.c
+3
-13
No files found.
libavfilter/vf_field.c
View file @
a733481d
...
...
@@ -50,17 +50,6 @@ static const AVOption field_options[] = {
AVFILTER_DEFINE_CLASS
(
field
);
static
av_cold
int
init
(
AVFilterContext
*
ctx
,
const
char
*
args
)
{
FieldContext
*
field
=
ctx
->
priv
;
static
const
char
*
shorthand
[]
=
{
"type"
,
NULL
};
field
->
class
=
&
field_class
;
av_opt_set_defaults
(
field
);
return
av_opt_set_from_string
(
field
,
args
,
shorthand
,
"="
,
":"
);
}
static
int
config_props_output
(
AVFilterLink
*
outlink
)
{
AVFilterContext
*
ctx
=
outlink
->
src
;
...
...
@@ -118,14 +107,15 @@ static const AVFilterPad field_outputs[] = {
{
NULL
}
};
static
const
char
*
const
shorthand
[]
=
{
"type"
,
NULL
};
AVFilter
avfilter_vf_field
=
{
.
name
=
"field"
,
.
description
=
NULL_IF_CONFIG_SMALL
(
"Extract a field from the input video."
),
.
priv_size
=
sizeof
(
FieldContext
),
.
init
=
init
,
.
inputs
=
field_inputs
,
.
outputs
=
field_outputs
,
.
priv_class
=
&
field_class
,
.
shorthand
=
shorthand
,
};
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