History

lavfi/split: use AVFILTER_DEFINE_CLASS to define class

Stefano Sabatini committed 13 years ago

Commit ba32afd1 parent bec402b1 file · +4 −12Browse files

Unified · Split

libavfilter/split.c+4−12
@@ -97,19 +97,11 @@ static const AVOption options[] = { · 96 unmodified lines
9797 { NULL },
9898 };
9999
100−static const AVClass split_class = {
101− .class_name = "split",
102− .item_name = av_default_item_name,
103− .option = options,
104− .version = LIBAVUTIL_VERSION_INT,
105−};
100+#define split_options options
101+AVFILTER_DEFINE_CLASS(split);
106102
107−static const AVClass asplit_class = {
108− .class_name = "asplit",
109− .item_name = av_default_item_name,
110− .option = options,
111− .version = LIBAVUTIL_VERSION_INT,
112−};
103+#define asplit_options options
104+AVFILTER_DEFINE_CLASS(asplit);
113105
114106 static const AVFilterPad avfilter_vf_split_inputs[] = {
115107 {

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