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
3ac77f67
Commit
3ac77f67
authored
Mar 24, 2013
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/apad: use standard options parsing.
parent
4c6f08bd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
+3
-8
af_apad.c
libavfilter/af_apad.c
+3
-8
No files found.
libavfilter/af_apad.c
View file @
3ac77f67
...
@@ -58,17 +58,9 @@ AVFILTER_DEFINE_CLASS(apad);
...
@@ -58,17 +58,9 @@ AVFILTER_DEFINE_CLASS(apad);
static
av_cold
int
init
(
AVFilterContext
*
ctx
,
const
char
*
args
)
static
av_cold
int
init
(
AVFilterContext
*
ctx
,
const
char
*
args
)
{
{
int
ret
;
APadContext
*
apad
=
ctx
->
priv
;
APadContext
*
apad
=
ctx
->
priv
;
apad
->
class
=
&
apad_class
;
apad
->
next_pts
=
AV_NOPTS_VALUE
;
apad
->
next_pts
=
AV_NOPTS_VALUE
;
av_opt_set_defaults
(
apad
);
if
((
ret
=
av_opt_set_from_string
(
apad
,
args
,
NULL
,
"="
,
":"
))
<
0
)
return
ret
;
if
(
apad
->
whole_len
&&
apad
->
pad_len
)
{
if
(
apad
->
whole_len
&&
apad
->
pad_len
)
{
av_log
(
ctx
,
AV_LOG_ERROR
,
"Both whole and pad length are set, this is not possible
\n
"
);
av_log
(
ctx
,
AV_LOG_ERROR
,
"Both whole and pad length are set, this is not possible
\n
"
);
return
AVERROR
(
EINVAL
);
return
AVERROR
(
EINVAL
);
...
@@ -152,6 +144,8 @@ static const AVFilterPad apad_outputs[] = {
...
@@ -152,6 +144,8 @@ static const AVFilterPad apad_outputs[] = {
{
NULL
},
{
NULL
},
};
};
static
const
char
*
const
shorthand
[]
=
{
NULL
};
AVFilter
avfilter_af_apad
=
{
AVFilter
avfilter_af_apad
=
{
.
name
=
"apad"
,
.
name
=
"apad"
,
.
description
=
NULL_IF_CONFIG_SMALL
(
"Pad audio with silence."
),
.
description
=
NULL_IF_CONFIG_SMALL
(
"Pad audio with silence."
),
...
@@ -160,4 +154,5 @@ AVFilter avfilter_af_apad = {
...
@@ -160,4 +154,5 @@ AVFilter avfilter_af_apad = {
.
inputs
=
apad_inputs
,
.
inputs
=
apad_inputs
,
.
outputs
=
apad_outputs
,
.
outputs
=
apad_outputs
,
.
priv_class
=
&
apad_class
,
.
priv_class
=
&
apad_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