diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-09-28 00:09:19 +0300 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-10-05 19:58:28 +0300 |
commit | 3b0926457f37018178c8e2cc8ae6360389af1f14 (patch) | |
tree | b7b87a1cf2e535a9c1024918a7cb492a05188a38 /libavfilter/vf_deinterlace_qsv.c | |
parent | f41708eb3ad1387d7ca51efaa148b15794b42a12 (diff) |
avfilter/vf_deinterlace_qsv: Store format in filter, remove query func
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavfilter/vf_deinterlace_qsv.c')
-rw-r--r-- | libavfilter/vf_deinterlace_qsv.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/libavfilter/vf_deinterlace_qsv.c b/libavfilter/vf_deinterlace_qsv.c index c30e1e7fc2..fb54d179ed 100644 --- a/libavfilter/vf_deinterlace_qsv.c +++ b/libavfilter/vf_deinterlace_qsv.c @@ -103,15 +103,6 @@ static av_cold void qsvdeint_uninit(AVFilterContext *ctx) s->nb_surface_ptrs = 0; } -static int qsvdeint_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 mfxStatus frame_alloc(mfxHDL pthis, mfxFrameAllocRequest *req, mfxFrameAllocResponse *resp) { @@ -604,7 +595,7 @@ const AVFilter ff_vf_deinterlace_qsv = { FILTER_INPUTS(qsvdeint_inputs), FILTER_OUTPUTS(qsvdeint_outputs), - FILTER_QUERY_FUNC(qsvdeint_query_formats), + FILTER_SINGLE_PIXFMT(AV_PIX_FMT_QSV), .flags_internal = FF_FILTER_FLAG_HWFRAME_AWARE, }; |