Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
BC
public
external
ffmpeg
Commits
3f14febb
Commit
3f14febb
authored
Feb 25, 2013
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
af_channelsplit: switch to an AVOptions-based system.
parent
ba8efac9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
7 deletions
+1
-7
libavfilter/af_channelsplit.c
libavfilter/af_channelsplit.c
+1
-7
No files found.
libavfilter/af_channelsplit.c
View file @
3f14febb
...
@@ -59,12 +59,6 @@ static int init(AVFilterContext *ctx, const char *arg)
...
@@ -59,12 +59,6 @@ static int init(AVFilterContext *ctx, const char *arg)
int
nb_channels
;
int
nb_channels
;
int
ret
=
0
,
i
;
int
ret
=
0
,
i
;
s
->
class
=
&
channelsplit_class
;
av_opt_set_defaults
(
s
);
if
((
ret
=
av_set_options_string
(
s
,
arg
,
"="
,
":"
))
<
0
)
{
av_log
(
ctx
,
AV_LOG_ERROR
,
"Error parsing options string '%s'.
\n
"
,
arg
);
return
ret
;
}
if
(
!
(
s
->
channel_layout
=
av_get_channel_layout
(
s
->
channel_layout_str
)))
{
if
(
!
(
s
->
channel_layout
=
av_get_channel_layout
(
s
->
channel_layout_str
)))
{
av_log
(
ctx
,
AV_LOG_ERROR
,
"Error parsing channel layout '%s'.
\n
"
,
av_log
(
ctx
,
AV_LOG_ERROR
,
"Error parsing channel layout '%s'.
\n
"
,
s
->
channel_layout_str
);
s
->
channel_layout_str
);
...
@@ -84,7 +78,6 @@ static int init(AVFilterContext *ctx, const char *arg)
...
@@ -84,7 +78,6 @@ static int init(AVFilterContext *ctx, const char *arg)
}
}
fail:
fail:
av_opt_free
(
s
);
return
ret
;
return
ret
;
}
}
...
@@ -149,6 +142,7 @@ AVFilter avfilter_af_channelsplit = {
...
@@ -149,6 +142,7 @@ AVFilter avfilter_af_channelsplit = {
.
name
=
"channelsplit"
,
.
name
=
"channelsplit"
,
.
description
=
NULL_IF_CONFIG_SMALL
(
"Split audio into per-channel streams"
),
.
description
=
NULL_IF_CONFIG_SMALL
(
"Split audio into per-channel streams"
),
.
priv_size
=
sizeof
(
ChannelSplitContext
),
.
priv_size
=
sizeof
(
ChannelSplitContext
),
.
priv_class
=
&
channelsplit_class
,
.
init
=
init
,
.
init
=
init
,
.
query_formats
=
query_formats
,
.
query_formats
=
query_formats
,
...
...
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