History

avfilter/af_asupercut: Deduplicate AVClasses

Andreas Rheinhardt committed 5 years ago

Commit 3000ac41 parent 8c4a7a41 file · +4 −7Browse files

Showing the changes to libavfilter (1 of 1 file). Show all

Unified · Split

libavfilter/af_asupercut.c+4−7
@@ -399,15 +399,15 @@ static const AVOption asuperpass_asuperstop_options[] = { · 398 unmodified lines
399399 { NULL }
400400 };
401401
402−#define asuperpass_options asuperpass_asuperstop_options
403−AVFILTER_DEFINE_CLASS(asuperpass);
402+AVFILTER_DEFINE_CLASS_EXT(asuperpass_asuperstop, "asuperpass/asuperstop",
403+ asuperpass_asuperstop_options);
404404
405405 const AVFilter ff_af_asuperpass = {
406406 .name = "asuperpass",
407407 .description = NULL_IF_CONFIG_SMALL("Apply high order Butterworth band-pass filter."),
408+ .priv_class = &asuperpass_asuperstop_class,
408409 .query_formats = query_formats,
409410 .priv_size = sizeof(ASuperCutContext),
410− .priv_class = &asuperpass_class,
411411 .uninit = uninit,
412412 FILTER_INPUTS(inputs),
413413 FILTER_OUTPUTS(outputs),
@@ -416,15 +416,12 @@ const AVFilter ff_af_asuperpass = { · 2 unmodified lines
416416 AVFILTER_FLAG_SLICE_THREADS,
417417 };
418418
419−#define asuperstop_options asuperpass_asuperstop_options
420−AVFILTER_DEFINE_CLASS(asuperstop);
421−
422419 const AVFilter ff_af_asuperstop = {
423420 .name = "asuperstop",
424421 .description = NULL_IF_CONFIG_SMALL("Apply high order Butterworth band-stop filter."),
422+ .priv_class = &asuperpass_asuperstop_class,
425423 .query_formats = query_formats,
426424 .priv_size = sizeof(ASuperCutContext),
427− .priv_class = &asuperstop_class,
428425 .uninit = uninit,
429426 FILTER_INPUTS(inputs),
430427 FILTER_OUTPUTS(outputs),

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