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
1007de70
Commit
1007de70
authored
Apr 12, 2013
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
asetpts: add AVOptions
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
292f6815
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
f_setpts.c
libavfilter/f_setpts.c
+16
-0
No files found.
libavfilter/f_setpts.c
View file @
1007de70
...
...
@@ -208,6 +208,21 @@ static av_cold void uninit(AVFilterContext *ctx)
}
#if CONFIG_ASETPTS_FILTER
#define OFFSET(x) offsetof(SetPTSContext, x)
#define AFLAGS AV_OPT_FLAG_AUDIO_PARAM | AV_OPT_FLAG_FILTERING_PARAM
static
const
AVOption
aoptions
[]
=
{
{
"expr"
,
"Expression determining the frame timestamp"
,
OFFSET
(
expr_str
),
AV_OPT_TYPE_STRING
,
{
.
str
=
"PTS"
},
.
flags
=
AFLAGS
},
{
NULL
},
};
static
const
AVClass
asetpts_class
=
{
.
class_name
=
"asetpts"
,
.
item_name
=
av_default_item_name
,
.
option
=
aoptions
,
.
version
=
LIBAVUTIL_VERSION_INT
,
};
static
const
AVFilterPad
avfilter_af_asetpts_inputs
[]
=
{
{
.
name
=
"default"
,
...
...
@@ -233,6 +248,7 @@ AVFilter avfilter_af_asetpts = {
.
init
=
init
,
.
uninit
=
uninit
,
.
priv_size
=
sizeof
(
SetPTSContext
),
.
priv_class
=
&
asetpts_class
,
.
inputs
=
avfilter_af_asetpts_inputs
,
.
outputs
=
avfilter_af_asetpts_outputs
,
};
...
...
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