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
e2e992c0
Commit
e2e992c0
authored
Apr 11, 2013
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/asetnsamples: switch to an AVOptions-based system.
parent
1c0feee0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
15 deletions
+6
-15
filters.texi
doc/filters.texi
+1
-2
af_asetnsamples.c
libavfilter/af_asetnsamples.c
+5
-12
avfilter.c
libavfilter/avfilter.c
+0
-1
No files found.
doc/filters.texi
View file @
e2e992c0
...
...
@@ -902,8 +902,7 @@ The last output packet may contain a different number of samples, as
the filter will flush all the remaining samples when the input audio
signal its end.
The filter accepts parameters as a list of @var{key}=@var{value} pairs,
separated by ":".
The filter accepts the following options:
@table @option
...
...
libavfilter/af_asetnsamples.c
View file @
e2e992c0
...
...
@@ -45,11 +45,11 @@ typedef struct {
#define FLAGS AV_OPT_FLAG_AUDIO_PARAM|AV_OPT_FLAG_FILTERING_PARAM
static
const
AVOption
asetnsamples_options
[]
=
{
{
"pad"
,
"pad last frame with zeros"
,
OFFSET
(
pad
),
AV_OPT_TYPE_INT
,
{.
i64
=
1
},
0
,
1
,
FLAGS
},
{
"p"
,
"pad last frame with zeros"
,
OFFSET
(
pad
),
AV_OPT_TYPE_INT
,
{.
i64
=
1
},
0
,
1
,
FLAGS
},
{
"nb_out_samples"
,
"set the number of per-frame output samples"
,
OFFSET
(
nb_out_samples
),
AV_OPT_TYPE_INT
,
{.
i64
=
1024
},
1
,
INT_MAX
,
FLAGS
},
{
"n"
,
"set the number of per-frame output samples"
,
OFFSET
(
nb_out_samples
),
AV_OPT_TYPE_INT
,
{.
i64
=
1024
},
1
,
INT_MAX
,
FLAGS
},
{
NULL
}
{
"nb_out_samples"
,
"set the number of per-frame output samples"
,
OFFSET
(
nb_out_samples
),
AV_OPT_TYPE_INT
,
{.
i64
=
1024
},
1
,
INT_MAX
,
FLAGS
},
{
"n"
,
"set the number of per-frame output samples"
,
OFFSET
(
nb_out_samples
),
AV_OPT_TYPE_INT
,
{.
i64
=
1024
},
1
,
INT_MAX
,
FLAGS
},
{
"pad"
,
"pad last frame with zeros"
,
OFFSET
(
pad
),
AV_OPT_TYPE_INT
,
{.
i64
=
1
},
0
,
1
,
FLAGS
},
{
"p"
,
"pad last frame with zeros"
,
OFFSET
(
pad
),
AV_OPT_TYPE_INT
,
{.
i64
=
1
},
0
,
1
,
FLAGS
},
{
NULL
}
};
AVFILTER_DEFINE_CLASS
(
asetnsamples
);
...
...
@@ -57,13 +57,6 @@ AVFILTER_DEFINE_CLASS(asetnsamples);
static
av_cold
int
init
(
AVFilterContext
*
ctx
,
const
char
*
args
)
{
ASNSContext
*
asns
=
ctx
->
priv
;
int
err
;
asns
->
class
=
&
asetnsamples_class
;
av_opt_set_defaults
(
asns
);
if
((
err
=
av_set_options_string
(
asns
,
args
,
"="
,
":"
))
<
0
)
return
err
;
asns
->
next_out_pts
=
AV_NOPTS_VALUE
;
av_log
(
ctx
,
AV_LOG_VERBOSE
,
"nb_out_samples:%d pad:%d
\n
"
,
asns
->
nb_out_samples
,
asns
->
pad
);
...
...
libavfilter/avfilter.c
View file @
e2e992c0
...
...
@@ -677,7 +677,6 @@ static const char *const filters_left_to_update[] = {
"aevalsrc"
,
"amerge"
,
"aresample"
,
"asetnsamples"
,
"atempo"
,
"buffer"
,
"flite"
,
...
...
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