avfilter/vf_framepack: Use formats list instead of query function

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt 2021-09-27 15:37:59 +02:00
parent 0a8312f5a4
commit 27d2af093e
1 changed files with 1 additions and 7 deletions

View File

@ -79,12 +79,6 @@ static const enum AVPixelFormat formats_supported[] = {
AV_PIX_FMT_NONE AV_PIX_FMT_NONE
}; };
static int query_formats(AVFilterContext *ctx)
{
// this will ensure that formats are the same on all pads
return ff_set_common_formats_from_list(ctx, formats_supported);
}
static av_cold void framepack_uninit(AVFilterContext *ctx) static av_cold void framepack_uninit(AVFilterContext *ctx)
{ {
FramepackContext *s = ctx->priv; FramepackContext *s = ctx->priv;
@ -471,7 +465,7 @@ const AVFilter ff_vf_framepack = {
.priv_class = &framepack_class, .priv_class = &framepack_class,
FILTER_INPUTS(framepack_inputs), FILTER_INPUTS(framepack_inputs),
FILTER_OUTPUTS(framepack_outputs), FILTER_OUTPUTS(framepack_outputs),
FILTER_QUERY_FUNC(query_formats), FILTER_PIXFMTS_ARRAY(formats_supported),
.activate = activate, .activate = activate,
.uninit = framepack_uninit, .uninit = framepack_uninit,
}; };