diff options
author | Anton Khirnov <anton@khirnov.net> | 2013-02-25 21:21:29 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2013-04-09 19:10:00 +0200 |
commit | 3f14febbdf7c93bbd186399da27991180e5916b6 (patch) | |
tree | 6ce2e70f96e2ff7421da3fe9ecc0511763cbe7f8 /libavfilter | |
parent | ba8efac977f4276f05274947b2b67d144cbc965a (diff) | |
download | ffmpeg-streaming-3f14febbdf7c93bbd186399da27991180e5916b6.zip ffmpeg-streaming-3f14febbdf7c93bbd186399da27991180e5916b6.tar.gz |
af_channelsplit: switch to an AVOptions-based system.
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/af_channelsplit.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/libavfilter/af_channelsplit.c b/libavfilter/af_channelsplit.c index d6110ef..31e3b0e 100644 --- a/libavfilter/af_channelsplit.c +++ b/libavfilter/af_channelsplit.c @@ -59,12 +59,6 @@ static int init(AVFilterContext *ctx, const char *arg) int nb_channels; 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))) { av_log(ctx, AV_LOG_ERROR, "Error parsing channel layout '%s'.\n", s->channel_layout_str); @@ -84,7 +78,6 @@ static int init(AVFilterContext *ctx, const char *arg) } fail: - av_opt_free(s); return ret; } @@ -149,6 +142,7 @@ AVFilter avfilter_af_channelsplit = { .name = "channelsplit", .description = NULL_IF_CONFIG_SMALL("Split audio into per-channel streams"), .priv_size = sizeof(ChannelSplitContext), + .priv_class = &channelsplit_class, .init = init, .query_formats = query_formats, |