History

avfilter/vf_weave: Deduplicate AVClasses

Andreas Rheinhardt committed 5 years ago

Commit f8047181 parent 57bc79e1 file · +2 −5Browse files

Unified · Split

libavfilter/vf_weave.c+2−5
@@ -47,7 +47,7 @@ static const AVOption weave_options[] = { · 46 unmodified lines
4747 { NULL }
4848 };
4949
50−AVFILTER_DEFINE_CLASS(weave);
50+AVFILTER_DEFINE_CLASS_EXT(weave, "(double)weave", weave_options);
5151
5252 static int query_formats(AVFilterContext *ctx)
5353 {
@@ -210,14 +210,11 @@ static av_cold int init(AVFilterContext *ctx) · 156 unmodified lines
210210 return 0;
211211 }
212212
213−#define doubleweave_options weave_options
214−AVFILTER_DEFINE_CLASS(doubleweave);
215−
216213 const AVFilter ff_vf_doubleweave = {
217214 .name = "doubleweave",
218215 .description = NULL_IF_CONFIG_SMALL("Weave input video fields into double number of frames."),
216+ .priv_class = &weave_class,
219217 .priv_size = sizeof(WeaveContext),
220− .priv_class = &doubleweave_class,
221218 .query_formats = query_formats,
222219 .init = init,
223220 .uninit = uninit,

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