diff mbox series

[FFmpeg-devel,070/218] avfilter/vf_hqx: Store format in filter, remove query function

Message ID PR3PR03MB6665284DCF3298F5EE6454588FAA9@PR3PR03MB6665.eurprd03.prod.outlook.com
State Accepted
Commit a3cd5bb63841533ba5cf9548c2156bccaf48c7dc
Headers show
Series [FFmpeg-devel,001/218] avfilter/f_reverse: Don't use redundant query_formats function | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished
andriy/make_ppc success Make finished
andriy/make_fate_ppc success Make fate finished

Commit Message

Andreas Rheinhardt Sept. 30, 2021, 1:40 p.m. UTC
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavfilter/vf_hqx.c | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)
diff mbox series

Patch

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,
 };