ffmpeg | branch: master | Timo Rothenpieler <t...@rothenpieler.org> | Thu Oct 7 18:50:47 2021 +0200| [1831fa72785d46ed2ec5a0c4084866e0089574f4] | committer: Timo Rothenpieler
avfilter/sharpen_npp: use FILTER_SINGLE_PIXFMT > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1831fa72785d46ed2ec5a0c4084866e0089574f4 --- libavfilter/vf_sharpen_npp.c | 11 +---------- 1 file changed, 1 insertion(+), 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, }; _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog To unsubscribe, visit link above, or email ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".