diff options
author | Timo Rothenpieler <timo@rothenpieler.org> | 2021-10-07 18:50:47 +0200 |
---|---|---|
committer | Timo Rothenpieler <timo@rothenpieler.org> | 2021-10-07 19:01:25 +0200 |
commit | 1831fa72785d46ed2ec5a0c4084866e0089574f4 (patch) | |
tree | 4edd1e21fef44be62a95f9a199e772ec4b31791f | |
parent | 7529781ba83257c01032d7c27d9e140ac18804a3 (diff) | |
download | ffmpeg-1831fa72785d46ed2ec5a0c4084866e0089574f4.tar.gz |
avfilter/sharpen_npp: use FILTER_SINGLE_PIXFMT
-rw-r--r-- | libavfilter/vf_sharpen_npp.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/libavfilter/vf_sharpen_npp.c b/libavfilter/vf_sharpen_npp.c index cfd75e51c5..0a2c5c458b 100644 --- a/libavfilter/vf_sharpen_npp.c +++ b/libavfilter/vf_sharpen_npp.c @@ -131,15 +131,6 @@ static void nppsharpen_uninit(AVFilterContext* ctx) av_frame_free(&s->tmp_frame); } -static int nppsharpen_query_formats(AVFilterContext* ctx) -{ - static const enum AVPixelFormat pixel_formats[] = { - AV_PIX_FMT_CUDA, - AV_PIX_FMT_NONE, - }; - return ff_set_common_formats_from_list(ctx, pixel_formats); -} - static int nppsharpen_config_props(AVFilterLink* outlink) { AVFilterLink* inlink = outlink->src->inputs[0]; @@ -274,7 +265,7 @@ const AVFilter ff_vf_sharpen_npp = { FILTER_INPUTS(nppsharpen_inputs), FILTER_OUTPUTS(nppsharpen_outputs), - FILTER_QUERY_FUNC(nppsharpen_query_formats), + FILTER_SINGLE_PIXFMT(AV_PIX_FMT_CUDA), .flags_internal = FF_FILTER_FLAG_HWFRAME_AWARE, }; |