mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-27 01:42:20 +00:00
libavfilter/vf_blend: do not unconditionally compile both filters
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
9975088472
commit
91bdb24400
@ -373,6 +373,20 @@ static int query_formats(AVFilterContext *ctx)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static av_cold void uninit(AVFilterContext *ctx)
|
||||
{
|
||||
BlendContext *b = ctx->priv;
|
||||
int i;
|
||||
|
||||
ff_dualinput_uninit(&b->dinput);
|
||||
av_freep(&b->prev_frame);
|
||||
|
||||
for (i = 0; i < FF_ARRAY_ELEMS(b->params); i++)
|
||||
av_expr_free(b->params[i].e);
|
||||
}
|
||||
|
||||
#if CONFIG_BLEND_FILTER
|
||||
|
||||
static int config_output(AVFilterLink *outlink)
|
||||
{
|
||||
AVFilterContext *ctx = outlink->src;
|
||||
@ -418,18 +432,6 @@ static int config_output(AVFilterLink *outlink)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static av_cold void uninit(AVFilterContext *ctx)
|
||||
{
|
||||
BlendContext *b = ctx->priv;
|
||||
int i;
|
||||
|
||||
ff_dualinput_uninit(&b->dinput);
|
||||
av_freep(&b->prev_frame);
|
||||
|
||||
for (i = 0; i < FF_ARRAY_ELEMS(b->params); i++)
|
||||
av_expr_free(b->params[i].e);
|
||||
}
|
||||
|
||||
static int request_frame(AVFilterLink *outlink)
|
||||
{
|
||||
BlendContext *b = outlink->src->priv;
|
||||
@ -478,6 +480,10 @@ AVFilter ff_vf_blend = {
|
||||
.flags = AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL | AVFILTER_FLAG_SLICE_THREADS,
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
#if CONFIG_TBLEND_FILTER
|
||||
|
||||
static int tblend_config_output(AVFilterLink *outlink)
|
||||
{
|
||||
AVFilterContext *ctx = outlink->src;
|
||||
@ -545,3 +551,5 @@ AVFilter ff_vf_tblend = {
|
||||
.outputs = tblend_outputs,
|
||||
.flags = AVFILTER_FLAG_SLICE_THREADS,
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user