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
c378ba19
Commit
c378ba19
authored
Apr 12, 2013
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
abuffer: switch to an AVOptions-based shorthand system.
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
16e5e13c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
6 deletions
+1
-6
avfilter.c
libavfilter/avfilter.c
+0
-1
buffersrc.c
libavfilter/buffersrc.c
+1
-5
No files found.
libavfilter/avfilter.c
View file @
c378ba19
...
...
@@ -683,7 +683,6 @@ static int process_options(AVFilterContext *ctx, AVDictionary **options,
// TODO: drop me
static
const
char
*
const
filters_left_to_update
[]
=
{
"abuffer"
,
#if FF_API_ACONVERT_FILTER
"aconvert"
,
#endif
...
...
libavfilter/buffersrc.c
View file @
c378ba19
...
...
@@ -345,8 +345,8 @@ static const AVOption abuffer_options[] = {
{
"time_base"
,
NULL
,
OFFSET
(
time_base
),
AV_OPT_TYPE_RATIONAL
,
{
.
dbl
=
0
},
0
,
INT_MAX
,
A
},
{
"sample_rate"
,
NULL
,
OFFSET
(
sample_rate
),
AV_OPT_TYPE_INT
,
{
.
i64
=
0
},
0
,
INT_MAX
,
A
},
{
"sample_fmt"
,
NULL
,
OFFSET
(
sample_fmt_str
),
AV_OPT_TYPE_STRING
,
.
flags
=
A
},
{
"channels"
,
NULL
,
OFFSET
(
channels
),
AV_OPT_TYPE_INT
,
{
.
i64
=
0
},
0
,
INT_MAX
,
A
},
{
"channel_layout"
,
NULL
,
OFFSET
(
channel_layout_str
),
AV_OPT_TYPE_STRING
,
.
flags
=
A
},
{
"channels"
,
NULL
,
OFFSET
(
channels
),
AV_OPT_TYPE_INT
,
{
.
i64
=
0
},
0
,
INT_MAX
,
A
},
{
NULL
},
};
...
...
@@ -532,9 +532,6 @@ static const AVFilterPad avfilter_asrc_abuffer_outputs[] = {
{
NULL
}
};
static
const
char
*
const
abuffer_shorthand
[]
=
{
"time_base"
,
"sample_rate"
,
"sample_fmt"
,
"channel_layout"
,
NULL
};
AVFilter
avfilter_asrc_abuffer
=
{
.
name
=
"abuffer"
,
.
description
=
NULL_IF_CONFIG_SMALL
(
"Buffer audio frames, and make them accessible to the filterchain."
),
...
...
@@ -547,5 +544,4 @@ AVFilter avfilter_asrc_abuffer = {
.
inputs
=
NULL
,
.
outputs
=
avfilter_asrc_abuffer_outputs
,
.
priv_class
=
&
abuffer_class
,
.
shorthand
=
abuffer_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