diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-09-27 22:50:51 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-10-05 18:58:28 +0200 |
commit | 548cb8ef5cda71602b6ac4fa835b3c2bbd7163c7 (patch) | |
tree | a084c34da4dd4befbb73c8d6a6748518056482e5 /libavfilter | |
parent | d7b7260be7bcabef1a35c7bf0911d337af5eb5cd (diff) | |
download | ffmpeg-548cb8ef5cda71602b6ac4fa835b3c2bbd7163c7.tar.gz |
avfilter/vf_scale_cuda: Store format in filter, remove query function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/vf_scale_cuda.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/libavfilter/vf_scale_cuda.c b/libavfilter/vf_scale_cuda.c index 93ff839b5a..1c99befec8 100644 --- a/libavfilter/vf_scale_cuda.c +++ b/libavfilter/vf_scale_cuda.c @@ -145,15 +145,6 @@ static av_cold void cudascale_uninit(AVFilterContext *ctx) av_frame_free(&s->tmp_frame); } -static int cudascale_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 av_cold int init_hwframe_ctx(CUDAScaleContext *s, AVBufferRef *device_ctx, int width, int height) { AVBufferRef *out_ref = NULL; @@ -648,7 +639,7 @@ const AVFilter ff_vf_scale_cuda = { FILTER_INPUTS(cudascale_inputs), FILTER_OUTPUTS(cudascale_outputs), - FILTER_QUERY_FUNC(cudascale_query_formats), + FILTER_SINGLE_PIXFMT(AV_PIX_FMT_CUDA), .flags_internal = FF_FILTER_FLAG_HWFRAME_AWARE, }; |