aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-09-27 16:55:56 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-10-05 18:58:25 +0200
commitb496e7b24766ba93b9e75965f59ff2ccde49bc59 (patch)
tree8b168b4c0f5f31e42d0f567df86a9c00ff9a5d73 /libavfilter
parentbb2b5254f9cf806dd1307cfa9e11ca40afda3b93 (diff)
downloadffmpeg-b496e7b24766ba93b9e75965f59ff2ccde49bc59.tar.gz
avfilter/vf_xbr: Store format in filter, remove query function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/vf_xbr.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/libavfilter/vf_xbr.c b/libavfilter/vf_xbr.c
index c799284566..6ae5310c9f 100644
--- a/libavfilter/vf_xbr.c
+++ b/libavfilter/vf_xbr.c
@@ -340,15 +340,6 @@ static int config_output(AVFilterLink *outlink)
return 0;
}
-static int query_formats(AVFilterContext *ctx)
-{
- static const enum AVPixelFormat pix_fmts[] = {
- AV_PIX_FMT_0RGB32, AV_PIX_FMT_NONE,
- };
-
- return ff_set_common_formats_from_list(ctx, pix_fmts);
-}
-
static int filter_frame(AVFilterLink *inlink, AVFrame *in)
{
AVFilterContext *ctx = inlink->dst;
@@ -425,7 +416,7 @@ const AVFilter ff_vf_xbr = {
.description = NULL_IF_CONFIG_SMALL("Scale the input using xBR algorithm."),
FILTER_INPUTS(xbr_inputs),
FILTER_OUTPUTS(xbr_outputs),
- FILTER_QUERY_FUNC(query_formats),
+ FILTER_SINGLE_PIXFMT(AV_PIX_FMT_0RGB32),
.priv_size = sizeof(XBRContext),
.priv_class = &xbr_class,
.init = init,