History

Merge commit '3f14febbdf7c93bbd186399da27991180e5916b6'

* commit '3f14febbdf7c93bbd186399da27991180e5916b6': af_channelsplit: switch to an AVOptions-based system. Conflicts: libavfilter/af_channelsplit.c

Michael Niedermayer committed 13 years ago

Commit f17651b2 parents d9d7c54 3f14feb2 files · +2 −6Browse files

Unified · Split

2 files
  1. libavfilter/af_channelsplit.c +1 −6
  2. libavfilter/avfilter.c +1 −0
libavfilter/af_channelsplit.c+1−6
@@ -55,10 +55,6 @@ static int init(AVFilterContext *ctx, const char *arg) · 54 unmodified lines
5555 int nb_channels;
5656 int ret = 0, i;
5757
58− s->class = &channelsplit_class;
59− av_opt_set_defaults(s);
60− if ((ret = av_set_options_string(s, arg, "=", ":")) < 0)
61− return ret;
6258 if (!(s->channel_layout = av_get_channel_layout(s->channel_layout_str))) {
6359 av_log(ctx, AV_LOG_ERROR, "Error parsing channel layout '%s'.\n",
6460 s->channel_layout_str);
@@ -78,7 +74,6 @@ static int init(AVFilterContext *ctx, const char *arg) · 13 unmodified lines
7874 }
7975
8076 fail:
81− av_opt_free(s);
8277 return ret;
8378 }
8479
@@ -144,11 +139,11 @@ AVFilter avfilter_af_channelsplit = { · 59 unmodified lines
144139 .name = "channelsplit",
145140 .description = NULL_IF_CONFIG_SMALL("Split audio into per-channel streams"),
146141 .priv_size = sizeof(ChannelSplitContext),
142+ .priv_class = &channelsplit_class,
147143
148144 .init = init,
149145 .query_formats = query_formats,
150146
151147 .inputs = avfilter_af_channelsplit_inputs,
152148 .outputs = NULL,
153− .priv_class = &channelsplit_class,
154149 };
libavfilter/avfilter.c+1−0
@@ -668,6 +668,7 @@ int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque · 667 unmodified lines
668668 !strcmp(filter->filter->name, "boxblur" ) ||
669669 !strcmp(filter->filter->name, "cellauto") ||
670670 !strcmp(filter->filter->name, "channelmap") ||
671+ !strcmp(filter->filter->name, "channelsplit") ||
671672 !strcmp(filter->filter->name, "colormatrix") ||
672673 !strcmp(filter->filter->name, "crop" ) ||
673674 !strcmp(filter->filter->name, "cropdetect") ||

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t