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
1c0feee0
Commit
1c0feee0
authored
Apr 11, 2013
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/anullsrc: switch to an AVOptions-based system.
parent
7464b9e3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
14 deletions
+4
-14
filters.texi
doc/filters.texi
+4
-7
asrc_anullsrc.c
libavfilter/asrc_anullsrc.c
+0
-6
avfilter.c
libavfilter/avfilter.c
+0
-1
No files found.
doc/filters.texi
View file @
1c0feee0
...
@@ -1596,16 +1596,10 @@ as a template and to be employed in analysis / debugging tools, or as
...
@@ -1596,16 +1596,10 @@ as a template and to be employed in analysis / debugging tools, or as
the source for filters which ignore the input data (for example the sox
the source for filters which ignore the input data (for example the sox
synth filter).
synth filter).
It accepts an optional sequence of @var{key}=@var{value} pairs,
This source accepts the following options:
separated by ":".
The description of the accepted options follows.
@table @option
@table @option
@item sample_rate, s
Specify the sample rate, and defaults to 44100.
@item channel_layout, cl
@item channel_layout, cl
Specify the channel layout, and can be either an integer or a string
Specify the channel layout, and can be either an integer or a string
...
@@ -1616,6 +1610,9 @@ Check the channel_layout_map definition in
...
@@ -1616,6 +1610,9 @@ Check the channel_layout_map definition in
@file{libavutil/channel_layout.c} for the mapping between strings and
@file{libavutil/channel_layout.c} for the mapping between strings and
channel layout values.
channel layout values.
@item sample_rate, r
Specify the sample rate, and defaults to 44100.
@item nb_samples, n
@item nb_samples, n
Set the number of samples per requested frames.
Set the number of samples per requested frames.
...
...
libavfilter/asrc_anullsrc.c
View file @
1c0feee0
...
@@ -64,12 +64,6 @@ static int init(AVFilterContext *ctx, const char *args)
...
@@ -64,12 +64,6 @@ static int init(AVFilterContext *ctx, const char *args)
ANullContext
*
null
=
ctx
->
priv
;
ANullContext
*
null
=
ctx
->
priv
;
int
ret
;
int
ret
;
null
->
class
=
&
anullsrc_class
;
av_opt_set_defaults
(
null
);
if
((
ret
=
av_set_options_string
(
null
,
args
,
"="
,
":"
))
<
0
)
return
ret
;
if
((
ret
=
ff_parse_sample_rate
(
&
null
->
sample_rate
,
if
((
ret
=
ff_parse_sample_rate
(
&
null
->
sample_rate
,
null
->
sample_rate_str
,
ctx
))
<
0
)
null
->
sample_rate_str
,
ctx
))
<
0
)
return
ret
;
return
ret
;
...
...
libavfilter/avfilter.c
View file @
1c0feee0
...
@@ -676,7 +676,6 @@ static const char *const filters_left_to_update[] = {
...
@@ -676,7 +676,6 @@ static const char *const filters_left_to_update[] = {
"aconvert"
,
"aconvert"
,
"aevalsrc"
,
"aevalsrc"
,
"amerge"
,
"amerge"
,
"anullsrc"
,
"aresample"
,
"aresample"
,
"asetnsamples"
,
"asetnsamples"
,
"atempo"
,
"atempo"
,
...
...
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