mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
lavfi/aselect: switch to an AVOptions-based system.
This commit is contained in:
parent
bca4cafaf2
commit
cb2327e88d
@ -6376,7 +6376,7 @@ This filter accepts the following options:
|
||||
|
||||
@table @option
|
||||
|
||||
@item expr
|
||||
@item expr, e
|
||||
An expression, which is evaluated for each input frame. If the expression is
|
||||
evaluated to a non-zero value, the frame is selected and passed to the output,
|
||||
otherwise it is discarded.
|
||||
|
@ -766,6 +766,7 @@ int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque
|
||||
!strcmp(filter->filter->name, "unsharp" ) ||
|
||||
// !strcmp(filter->filter->name, "scale" ) ||
|
||||
!strcmp(filter->filter->name, "select") ||
|
||||
!strcmp(filter->filter->name, "aselect" ) ||
|
||||
!strcmp(filter->filter->name, "volume" ) ||
|
||||
!strcmp(filter->filter->name, "yadif" ) ||
|
||||
0
|
||||
|
@ -388,8 +388,6 @@ static int query_formats(AVFilterContext *ctx)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static const char *const shorthand[] = { "expr", NULL };
|
||||
|
||||
#if CONFIG_ASELECT_FILTER
|
||||
|
||||
#define OFFSET(x) offsetof(SelectContext, x)
|
||||
@ -445,7 +443,6 @@ AVFilter avfilter_af_aselect = {
|
||||
.inputs = avfilter_af_aselect_inputs,
|
||||
.outputs = avfilter_af_aselect_outputs,
|
||||
.priv_class = &aselect_class,
|
||||
.shorthand = shorthand,
|
||||
};
|
||||
#endif /* CONFIG_ASELECT_FILTER */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user