summaryrefslogtreecommitdiff
path: root/libavfilter/vf_scale_qsv.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-09-27 22:49:13 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-10-05 18:58:28 +0200
commit6c7354362306c6e45d4a6e13da65363939423387 (patch)
tree8b5ba6058b04c4530cf463350befc00193149025 /libavfilter/vf_scale_qsv.c
parentb3ab22d88bd1d8f0d1296d6fbc538f3e168ace80 (diff)
avfilter/vf_scale_qsv: Use formats list instead of query function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavfilter/vf_scale_qsv.c')
-rw-r--r--libavfilter/vf_scale_qsv.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/libavfilter/vf_scale_qsv.c b/libavfilter/vf_scale_qsv.c
index ab497a9d45..371f629457 100644
--- a/libavfilter/vf_scale_qsv.c
+++ b/libavfilter/vf_scale_qsv.c
@@ -156,15 +156,6 @@ static av_cold void qsvscale_uninit(AVFilterContext *ctx)
s->nb_surface_ptrs_out = 0;
}
-static int qsvscale_query_formats(AVFilterContext *ctx)
-{
- static const enum AVPixelFormat pixel_formats[] = {
- AV_PIX_FMT_QSV, AV_PIX_FMT_NONE,
- };
-
- return ff_set_common_formats_from_list(ctx, pixel_formats);
-}
-
static int init_out_pool(AVFilterContext *ctx,
int out_width, int out_height)
{
@@ -678,7 +669,7 @@ const AVFilter ff_vf_scale_qsv = {
FILTER_INPUTS(qsvscale_inputs),
FILTER_OUTPUTS(qsvscale_outputs),
- FILTER_QUERY_FUNC(qsvscale_query_formats),
+ FILTER_SINGLE_PIXFMT(AV_PIX_FMT_QSV),
.flags_internal = FF_FILTER_FLAG_HWFRAME_AWARE,
};