aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/vf_hqx.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-09-27 15:39:16 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-10-05 18:58:24 +0200
commita3cd5bb63841533ba5cf9548c2156bccaf48c7dc (patch)
tree1e6e1d2c8001faa01da7c5ffa076edb7755d8ccf /libavfilter/vf_hqx.c
parent27d2af093e5466aad24e3c806cca344835412175 (diff)
downloadffmpeg-a3cd5bb63841533ba5cf9548c2156bccaf48c7dc.tar.gz
avfilter/vf_hqx: Store format in filter, remove query function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavfilter/vf_hqx.c')
-rw-r--r--libavfilter/vf_hqx.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/libavfilter/vf_hqx.c b/libavfilter/vf_hqx.c
index 7f4dc7af37..bc70d984e9 100644
--- a/libavfilter/vf_hqx.c
+++ b/libavfilter/vf_hqx.c
@@ -461,12 +461,6 @@ HQX_FUNC(2)
HQX_FUNC(3)
HQX_FUNC(4)
-static int query_formats(AVFilterContext *ctx)
-{
- static const enum AVPixelFormat pix_fmts[] = {AV_PIX_FMT_RGB32, AV_PIX_FMT_NONE};
- return ff_set_common_formats_from_list(ctx, pix_fmts);
-}
-
static int config_output(AVFilterLink *outlink)
{
AVFilterContext *ctx = outlink->src;
@@ -556,7 +550,7 @@ const AVFilter ff_vf_hqx = {
.init = init,
FILTER_INPUTS(hqx_inputs),
FILTER_OUTPUTS(hqx_outputs),
- FILTER_QUERY_FUNC(query_formats),
+ FILTER_SINGLE_PIXFMT(AV_PIX_FMT_RGB32),
.priv_class = &hqx_class,
.flags = AVFILTER_FLAG_SLICE_THREADS,
};